-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.65 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '2.1'
services:
datastax-apache-cassandra1:
build:
dockerfile: Dockerfile
context: .
environment:
- DS_LICENSE=accept
- SEEDS=datastax-apache-cassandra1,datastax-apache-cassandra2,datastax-apache-cassandra3
- DC=dc1
- RACK=rack1
- OPSCENTER_IP=172.21.0.5
links:
- datastax-dse-opscenter:opscenter
ports:
- "9042:9042"
networks:
demo-network:
ipv4_address: 172.21.0.2
datastax-apache-cassandra2:
image: datastax/dse-server:6.8.4
environment:
- DS_LICENSE=accept
- SEEDS=datastax-apache-cassandra1,datastax-apache-cassandra2,datastax-apache-cassandra3
- DC=dc1
- RACK=rack2
- OPSCENTER_IP=172.21.0.5
links:
- datastax-dse-opscenter:opscenter
ports:
- "9043:9042"
networks:
demo-network:
ipv4_address: 172.21.0.3
datastax-apache-cassandra3:
image: datastax/dse-server:6.8.4
environment:
- DS_LICENSE=accept
- SEEDS=datastax-apache-cassandra1,datastax-apache-cassandra2,datastax-apache-cassandra3
- DC=dc1
- RACK=rack3
- OPSCENTER_IP=172.21.0.5
links:
- datastax-dse-opscenter:opscenter
ports:
- "9044:9042"
networks:
demo-network:
ipv4_address: 172.21.0.4
datastax-dse-opscenter:
container_name: datastax-dse-opscenter
image: datastax/dse-opscenter:6.8.4
environment:
- DS_LICENSE=accept
ports:
- "8888:8888"
networks:
demo-network:
ipv4_address: 172.21.0.5
networks:
demo-network:
driver: bridge
ipam:
config:
- subnet: 172.21.0.0/16
gateway: 172.21.0.1