forked from thelastpickle/cassandra-reaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 1.01 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
version: '2.2'
services:
cassandra:
image: cassandra:3.11
env_file:
- docker/cassandra/cassandra.env
mem_limit: 4g
memswap_limit: 4g
mem_swappiness: 0
ports:
- "7000:7000"
- "7001:7001"
- "7199:7199"
- "9042:9042"
volumes:
- ./data/cassandra:/var/lib/cassandra
- ./docker/cassandra/jmxremote.access:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.access
- ./docker/cassandra/jmxremote.password:/etc/cassandra/jmxremote.password
cqlsh:
image: cassandra:3.11
command: cqlsh cassandra
links:
- cassandra
nodetool:
image: cassandra:3.11
entrypoint: nodetool --host cassandra --username reaperUser --password reaperPass
links:
- cassandra
initialize-reaper_db:
build: ./docker/initialize-reaper_db
links:
- cassandra
reaper:
image: cassandra-reaper:latest
env_file:
- docker/reaper/reaper.env
links:
- cassandra
ports:
- "8080:8080"
- "8081:8081"