-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelassandra-docker-compose.yml
58 lines (56 loc) · 1.38 KB
/
elassandra-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
version: "3.8"
services:
seed_node:
image: "docker.io/strapdata/elassandra:6.8.4.3"
environment:
- "JVM_OPTS=-Dcassandra.custom_query_handler_class=org.elassandra.index.ElasticQueryHandler"
- "MAX_HEAP_SIZE=1200m"
- "HEAP_NEWSIZE=300m"
- "CASSANDRA_CGROUP_MEMORY_LIMIT=true"
- "DEBUG=true"
cap_add:
- IPC_LOCK
ulimits:
memlock: -1
ports:
- "9042:9042"
- "9200:9200"
# only when using `deploy` and maybe only in swarm (?)
deploy:
resources:
limits:
memory: 2000M
healthcheck:
start_period: 31s
interval: 10s
timeout: 15s
retries: 10
node:
image: "docker.io/strapdata/elassandra:6.8.4.3"
environment:
- "JVM_OPTS=-Dcassandra.custom_query_handler_class=org.elassandra.index.ElasticQueryHandler"
- "MAX_HEAP_SIZE=1200m"
- "HEAP_NEWSIZE=300m"
- "CASSANDRA_CGROUP_MEMORY_LIMIT=true"
- "CASSANDRA_SEEDS=seed_node"
- "DEBUG=true"
links:
- seed_node
cap_add:
- IPC_LOCK
ulimits:
memlock: -1
deploy:
resources:
limits:
memory: 2000M
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.8.4
environment:
- "ELASTICSEARCH_URL=http://seed_node:9200"
ports:
- "5601:5601"
deploy:
resources:
limits:
memory: 500M