-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-cluster.yml
57 lines (54 loc) · 1.44 KB
/
docker-compose-cluster.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
# Please note we are using Docker Compose version 3
version: '3'
networks:
wlring:
services:
# seed_node is the first node that gets bootstrapped
# .i.e Node 1 in Data center 1.
seed_node:
build: cassandra
environment:
- DATACENTER=WATERL00
- CLUSTERNAME=lens
container_name: node00
hostname: node00
networks:
- wlring
# Exposing ports for inter cluste communication
expose:
- 7000 # Intra-node communication
- 7001 # TLS intra-node communication
- 7199 # JMX
- 9042 # CQL
- 9160 # Thrift service
ulimits:
memlock: -1
nodeops:
build: opscenter
container_name: nodeops
hostname: ops
ports:
- "8888:8888"
- "61620:61620"
networks:
- wlring
###########################################################################################
#
# next_node is the subsequent (second, third etc.) node that gets bootstrapped to join seed_node
next_node:
build: cassandra
environment:
- DATACENTER=WATERL00
- CLUSTERNAME=lens
networks:
- wlring
depends_on:
- seed_node
expose:
- 7000
- 7001
- 7199
- 9042
- 9160
ulimits:
memlock: -1