forked from deployable/docker-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 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
54
55
56
57
58
59
60
61
version: "2.1"
services:
cassandra-1:
image: cassandra:3.11.1
environment:
CASSANDRA_CLUSTER_NAME: tcluster
CASSANDRA_DC: TDC1
MAX_HEAP_SIZE: 600M
HEAP_NEWSIZE: 100M
ports:
- '9042:9042'
- '9160:9160'
networks:
cassclus:
ipv4_address: 10.0.75.11
cassandra-2:
image: cassandra:3.11.1
environment:
CASSANDRA_CLUSTER_NAME: tcluster
CASSANDRA_DC: TDC1
CASSANDRA_SEEDS: 10.0.75.11
MAX_HEAP_SIZE: 600M
HEAP_NEWSIZE: 100M
networks:
cassclus:
ipv4_address: 10.0.75.12
cassandra-3:
image: cassandra:3.11.1
environment:
CASSANDRA_CLUSTER_NAME: tcluster
CASSANDRA_DC: TDC1
CASSANDRA_SEEDS: 10.0.75.11
MAX_HEAP_SIZE: 600M
HEAP_NEWSIZE: 100M
networks:
cassclus:
ipv4_address: 10.0.75.13
cassandra-4:
image: cassandra:3.11.1
environment:
CASSANDRA_CLUSTER_NAME: tcluster
CASSANDRA_DC: TDC1
CASSANDRA_SEEDS: 10.0.75.11
MAX_HEAP_SIZE: 600M
HEAP_NEWSIZE: 100M
networks:
cassclus:
ipv4_address: 10.0.75.14
networks:
cassclus:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.75.0/24
gateway: 10.0.75.1