Skip to content

Commit 75da6ce

Browse files
dblugeonli-boxuan
authored andcommitted
Update docker-compose-cql-es.yml
* bump version for elastichsearch, cassandra and janusgraph visualizer * fix environment variable for janusgraph visualizer * add depends_on and healthcheck directives for cassandra, elasticsearch and janusgraph * fix healthcheck directive for janusgraph visualizer: curl is missing so we switch to netcat Signed-off-by: dblugeon <[email protected]>
1 parent 8f1e881 commit 75da6ce

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

janusgraph-dist/docker/examples/docker-compose-cql-es.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,33 @@ services:
2424
- "8182:8182"
2525
networks:
2626
- jce-network
27+
depends_on:
28+
cassandra:
29+
condition: service_healthy
30+
elasticsearch:
31+
condition: service_healthy
2732
healthcheck:
2833
test: ["CMD", "bin/gremlin.sh", "-e", "scripts/remote-connect.groovy"]
2934
interval: 10s
3035
timeout: 30s
3136
retries: 3
3237

3338
cassandra:
34-
image: cassandra:4.0.17
39+
image: cassandra:4.0.18
3540
container_name: jce-cassandra
3641
ports:
3742
- "9042:9042"
3843
- "9160:9160"
3944
networks:
4045
- jce-network
46+
healthcheck:
47+
test: ["CMD", "nodetool", "status"]
48+
interval: 10s
49+
timeout: 30s
50+
retries: 6
4151

4252
elasticsearch:
43-
image: elasticsearch:8.17.1
53+
image: elasticsearch:8.18.4
4454
container_name: jce-elastic
4555
environment:
4656
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
@@ -54,21 +64,27 @@ services:
5464
- "9200:9200"
5565
networks:
5666
- jce-network
67+
healthcheck:
68+
test: ["CMD", "curl", "-f", "http://localhost:9200"]
69+
interval: 10s
70+
timeout: 30s
71+
retries: 6
5772

5873
janusgraph-visualizer:
59-
image: janusgraph/janusgraph-visualizer:latest
74+
image: janusgraph/janusgraph-visualizer:1.0.4
6075
container_name: jce-visualizer
6176
ports:
6277
- "3000:3000"
6378
- "3001:3001"
6479
networks:
6580
- jce-network
6681
depends_on:
67-
- janusgraph
82+
janusgraph:
83+
condition: service_healthy
6884
environment:
69-
- GRAPH_URL=http://jce-janusgraph:8182
85+
- GREMLIN_HOST=jce-janusgraph
7086
healthcheck:
71-
test: ["CMD", "curl", "-f", "http://localhost:3001"]
87+
test: ["CMD", "nc", "-v", "-w", "2", "localhost", "3001"]
7288
interval: 10s
7389
retries: 3
7490

0 commit comments

Comments
 (0)