-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·53 lines (50 loc) · 1.26 KB
/
docker-compose.yml
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
version: '3.5'
services:
py-srv:
build: py-srv
command: sh -c "/wait && python app.py"
environment:
- WAIT_HOSTS=db:9042
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
db:
image: cassandra:latest
ports:
- 9042
healthcheck:
test: [ "CMD", "ls", "/opt/cassandra/bin" ]
interval: 15s
timeout: 10s
retries: 10
environment:
- CASSANDRA_SEEDS=node2,node3
- CASSANDRA_CLUSTER_NAME=citizix
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- CASSANDRA_DC=datacenter1
node2:
image: cassandra:latest
ports:
- 9042
healthcheck:
test: [ "CMD", "ls", "/opt/cassandra/bin" ]
interval: 15s
timeout: 10s
retries: 10
environment:
- CASSANDRA_CLUSTER_NAME=citizix
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- CASSANDRA_DC=datacenter1
node3:
image: cassandra:latest
ports:
- 9042
healthcheck:
test: [ "CMD", "ls", "/opt/cassandra/bin" ]
interval: 15s
timeout: 10s
retries: 10
environment:
- CASSANDRA_CLUSTER_NAME=citizix
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- CASSANDRA_DC=datacenter1