-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
139 lines (132 loc) · 4.53 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '2.3'
networks:
integration-tests:
driver: bridge
services:
cluster-1-node-0:
image: cassandra:3.11.8
mem_limit: 1024m
memswap_limit: 2048m
mem_swappiness: 0
environment:
CASSANDRA_CLUSTER_NAME: cluster-1
CASSANDRA_NUM_TOKENS: 32
LOCAL_JMX: "no"
MAX_HEAP_SIZE: 512M
HEAP_NEWSIZE: 256M
CASSANDRA_START_RPC: "false"
CASSANDRA_LISTEN_ADDRESS: cluster-1-node-0
CASSANDRA_BROADCAST_ADDRESS: cluster-1-node-0
CASSANDRA_RPC_ADDRESS: cluster-1-node-0
CASSANDRA_SEEDS: cluster-1-node-0,cluster-1-node-1
volumes:
- ./data/cassandra/cluster-1/cluster-1-node-0:/var/lib/cassandra
- ./data/jmxremote.access:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.access
- ./data/jmxremote.password:/etc/cassandra/jmxremote.password
networks:
- integration-tests
cluster-1-node-1:
image: cassandra:3.11.8
mem_limit: 1024m
memswap_limit: 2048m
mem_swappiness: 0
environment:
CASSANDRA_CLUSTER_NAME: cluster-1
CASSANDRA_NUM_TOKENS: 32
LOCAL_JMX: "no"
MAX_HEAP_SIZE: 512M
HEAP_NEWSIZE: 256M
CASSANDRA_LISTEN_ADDRESS: cluster-1-node-1
CASSANDRA_BROADCAST_ADDRESS: cluster-1-node-1
CASSANDRA_RPC_ADDRESS: cluster-1-node-1
CASSANDRA_START_RPC: "false"
CASSANDRA_SEEDS: cluster-1-node-0,cluster-1-node-1
volumes:
- ./data/cassandra/cluster-1/cluster-1-node-1:/var/lib/cassandra
- ./data/jmxremote.access:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.access
- ./data/jmxremote.password:/etc/cassandra/jmxremote.password
networks:
- integration-tests
cluster-2-node-0:
image: cassandra:3.11.8
mem_limit: 1024m
memswap_limit: 2048m
mem_swappiness: 0
environment:
CASSANDRA_CLUSTER_NAME: cluster-2
CASSANDRA_NUM_TOKENS: 32
LOCAL_JMX: "no"
MAX_HEAP_SIZE: 512M
HEAP_NEWSIZE: 256M
CASSANDRA_LISTEN_ADDRESS: cluster-2-node-0
CASSANDRA_BROADCAST_ADDRESS: cluster-2-node-0
CASSANDRA_START_RPC: "false"
CASSANDRA_RPC_ADDRESS: cluster-2-node-0
CASSANDRA_SEEDS: cluster-2-node-0,cluster-2-node-1
volumes:
- ./data/cassandra/cluster-2/cluster-2-node-r02:/var/lib/cassandra
- ./data/jmxremote.access:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.access
- ./data/jmxremote.password:/etc/cassandra/jmxremote.password
networks:
- integration-tests
cluster-2-node-1:
image: cassandra:3.11.8
mem_limit: 1024m
memswap_limit: 2048m
mem_swappiness: 0
environment:
CASSANDRA_CLUSTER_NAME: cluster-2
CASSANDRA_NUM_TOKENS: 32
LOCAL_JMX: "no"
MAX_HEAP_SIZE: 512M
HEAP_NEWSIZE: 256M
CASSANDRA_LISTEN_ADDRESS: cluster-2-node-1
CASSANDRA_BROADCAST_ADDRESS: cluster-2-node-1
CASSANDRA_START_RPC: "false"
CASSANDRA_RPC_ADDRESS: cluster-2-node-1
CASSANDRA_SEEDS: cluster-2-node-0,cluster-2-node-1
volumes:
- ./data/cassandra/cluster-2/cluster-2-node-1:/var/lib/cassandra
- ./data/jmxremote.access:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.access
- ./data/jmxremote.password:/etc/cassandra/jmxremote.password
networks:
- integration-tests
cluster-3-node-0:
image: cassandra:3.11.8
mem_limit: 1024m
memswap_limit: 2048m
mem_swappiness: 0
environment:
CASSANDRA_CLUSTER_NAME: cluster-3
CASSANDRA_NUM_TOKENS: 32
LOCAL_JMX: "no"
MAX_HEAP_SIZE: 512M
HEAP_NEWSIZE: 256M
CASSANDRA_LISTEN_ADDRESS: cluster-3-node-0
CASSANDRA_BROADCAST_ADDRESS: cluster-3-node-0
CASSANDRA_START_RPC: "false"
CASSANDRA_RPC_ADDRESS: cluster-3-node-0
CASSANDRA_SEEDS: cluster-3-node-0
volumes:
- ./data/cassandra/cluster-3/cluster-3-node-0:/var/lib/cassandra
- ./data/jmxremote.access:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.access
- ./data/jmxremote.password:/etc/cassandra/jmxremote.password
networks:
- integration-tests
reaper:
image: thelastpickle/cassandra-reaper:2.0.5
environment:
REAPER_STORAGE_TYPE: memory
REAPER_JMX_PORTS: "{cassandra1: 7199, cassandra2: 7199}"
REAPER_JMX_AUTH_USERNAME: reaperUser
REAPER_JMX_AUTH_PASSWORD: reaperPass
REAPER_AUTH_ENABLED: "true"
REAPER_AUTH_USER: reaperUser
REAPER_AUTH_PASSWORD: reaperPass
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ./data/reaper:/var/log/cassandra-reaper
networks:
- integration-tests