-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.23 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
version: '3.5'
services:
cassandra-seed:
container_name: cassandra-seed
image: cassandra
ports:
- "9042:9042"
environment:
- CASSANDRA_SEEDS=cassandra-seed
- CASSANDRA_CLUSTER_NAME=Cassandra Cluster
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- CASSANDRA_DC=DC1
restart: always
volumes:
- ../lambda-architecture/init:/init
- ./docker/volumes/cassandra-seed:/var/lib/cassandra
networks:
- cass
healthcheck:
test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
interval: 10s
timeout: 5s
retries: 50
cassandra-node:
container_name: cassandra-node
image: cassandra
environment:
- CASSANDRA_SEEDS=cassandra-seed
- CASSANDRA_CLUSTER_NAME=Cassandra Cluster
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- CASSANDRA_DC=DC1
restart: always
volumes:
- ../lambda-architecture/init:/init
- ./docker/volumes/cassandra-node:/var/lib/cassandra
depends_on:
- cassandra-seed
networks:
- cass
healthcheck:
test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
interval: 10s
timeout: 5s
retries: 50
networks:
cass: