-
Notifications
You must be signed in to change notification settings - Fork 0
/
infra-compose.yaml
72 lines (67 loc) · 1.84 KB
/
infra-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.8'
services:
cassandra-node1:
image: cassandra:latest
container_name: cassandra-node1
ports:
- 9042:9042
networks:
- services
volumes:
- ~/cassandra/node1/data:/var/lib/cassandra
environment:
- CASSANDRA_CLUSTER_NAME=my_cluster
- CASSANDRA_NUM_TOKENS=256
- CASSANDRA_SEEDS=cassandra-node1
- CASSANDRA_LISTEN_ADDRESS=cassandra-node1
- CASSANDRA_BROADCAST_ADDRESS=cassandra-node1
- CASSANDRA_BROADCAST_RPC_ADDRESS=cassandra-node1
cassandra-node2:
image: cassandra:latest
container_name: cassandra-node2
ports:
- 9043:9042
networks:
- services
volumes:
- ~/cassandra/node2/data:/var/lib/cassandra
environment:
- CASSANDRA_CLUSTER_NAME=my_cluster
- CASSANDRA_NUM_TOKENS=256
- CASSANDRA_SEEDS=cassandra-node1
- CASSANDRA_LISTEN_ADDRESS=cassandra-node2
- CASSANDRA_BROADCAST_ADDRESS=cassandra-node2
- CASSANDRA_BROADCAST_RPC_ADDRESS=cassandra-node2
cassandra-node3:
image: cassandra:latest
container_name: cassandra-node3
ports:
- 9044:9042
networks:
- services
volumes:
- ~/cassandra/node3/data:/var/lib/cassandra
environment:
- CASSANDRA_CLUSTER_NAME=my_cluster
- CASSANDRA_NUM_TOKENS=256
- CASSANDRA_SEEDS=cassandra-node1
- CASSANDRA_LISTEN_ADDRESS=cassandra-node3
- CASSANDRA_BROADCAST_ADDRESS=cassandra-node3
- CASSANDRA_BROADCAST_RPC_ADDRESS=cassandra-node3
minio:
image: minio/minio
container_name: minio
ports:
- 9000:9000
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
volumes:
- ~/minio/data:/data
- ~/minio/config:/root/.minio
command: server /data
networks:
- services
networks:
services:
driver: bridge