JanusGraph / JanusGraph/janusgraph
Updating the `docker-compose-cql-es.yml`
- Dominant language
- Java
- Stars
- 5.8k
- Forks
- 1.2k
- Avg merge
- 13h 53m
- Merged PRs (30d)
- 6
Description
I use this docker file for my project, and I've noticed some the docker image versions are a bit outdated.
Currently it looks like:
```yaml
# Copyright 2023 JanusGraph Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: "3"
services:
janusgraph:
image: docker.io/janusgraph/janusgraph:latest
container_name: jce-janusgraph
environment:
JANUS_PROPS_TEMPLATE: cql-es
janusgraph.storage.hostname: jce-cassandra
janusgraph.index.search.hostname: jce-elastic
ports:
- "8182:8182"
networks:
- jce-network
healthcheck:
test: ["CMD", "bin/gremlin.sh", "-e", "scripts/remote-connect.groovy"]
interval: 10s
timeout: 30s
retries: 3
cassandra:
image: cassandra:3
container_name: jce-cassandra
ports:
- "9042:9042"
- "9160:9160"
networks:
- jce-network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
container_name: jce-elastic
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "http.host=0.0.0.0"
- "network.host=0.0.0.0"
- "transport.host=127.0.0.1"
- "cluster.name=docker-cluster"
- "xpack.security.enabled=false"
- "discovery.zen.minimum_master_nodes=1"
ports:
- "9200:9200"
networks:
- jce-network
networks:
jce-network:
volumes:
janusgraph-default-data:
```
I've tested `cassandra:3.11.17` and `elasticsearch:6.8.23` which works fine. In my project, I also add
```yaml
janusgraph-visualizer:
image: janusgraph/janusgraph-visualizer:latest
container_name: jce-visualizer
ports:
- "3000:3000"
- "3001:3001"
networks:
- jce-network
depends_on:
- janusgraph
environment:
- GRAPH_URL=http://jce-janusgraph:8182
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001"]
interval: 10s
retries: 3
```
So that it also runs a visualizer, which I use very often.
Ideally I want to use the latest versions of all the docker images, but not sure how to make them compatible. Can you tell me what I can do and make a PR?
Thank you.
Contributor guide
Research direction
Start with docker-compose-cql-es.yml and review the Cassandra and Elasticsearch image versions shown in the issue, along with the proposed visualizer service. Run the compose setup using compatible image versions and verify that JanusGraph, Cassandra, Elasticsearch, and the visualizer start and connect successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cassandra, docker, docker-compose, elasticsearch
- Domain
- databases, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100