-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
94 lines (89 loc) · 2.62 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
# based on https://github.com/heckenmann/dse-docker-compose/blob/master/docker-compose.yml
version: '3.8'
services:
# https://github.com/JanusGraph/janusgraph-docker/blob/master/docker-compose-cql-es.yml
# TODO get this working and configured. For now, use binary install
# janusgraph:
# image: janusgraph/janusgraph:latest
# container_name: janus-tutorial-janus
# environment:
# JANUS_PROPS_TEMPLATE: cassandra-es
# janusgraph.storage.backend: cql
# janusgraph.storage.hostname: jce-cassandra
# janusgraph.index.search.hostname: jce-elastic
# ports:
# - "8182:8182"
# networks:
# - janus-tutorial
# healthcheck:
# test: ["CMD", "bin/gremlin.sh", "-e", "scripts/remote-connect.groovy"]
# interval: 10s
# timeout: 30s
# retries: 3
# ports:
# - 8182:8182
seed_node:
image: "docker.io/strapdata/elassandra:6.8.4.3"
container_name: janus-tutorial-elassandra-seed-node
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
networks:
- janus-tutorial
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
# I'm not sure if this will work or notk
# kibana:
# image: docker.elastic.co/kibana/kibana-oss:6.8.4
# environment:
# - "ELASTICSEARCH_URL=http://seed_node:9200"
# ports:
# - "5601:5601"
# networks:
# - janus-tutorial
# deploy:
# resources:
# limits:
# memory: 500M
networks:
janus-tutorial:
external: true
volumes:
janusgraph-default-data: