-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.05 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
54
version: '2'
services:
cassandra-1:
image: cassandra
container_name: cassandra-1
environment:
CASSANDRA_BROADCAST_ADDRESS: "cassandra-1"
ports:
- 7000
volumes:
- "cassandra1:/var/lib/cassandra"
restart: always
cassandra-2:
image: cassandra
container_name: cassandra-2
environment:
CASSANDRA_BROADCAST_ADDRESS: "cassandra-2"
CASSANDRA_SEEDS: "cassandra-1"
ports:
- 7000
depends_on:
- cassandra-1
volumes:
- "cassandra2:/var/lib/cassandra"
restart: always
cassandra-3:
image: cassandra
container_name: cassandra-3
environment:
CASSANDRA_BROADCAST_ADDRESS: "cassandra-3"
CASSANDRA_SEEDS: "cassandra-1"
ports:
- 7000
depends_on:
- cassandra-2
volumes:
- "cassandra3:/var/lib/cassandra"
restart: always
volumes:
cassandra1:
external:
name: testvol1
cassandra2:
external:
name: testvol2
cassandra3:
external:
name: testvol3
networks:
default:
external:
name: overlay-net