janusgraph icon indicating copy to clipboard operation
janusgraph copied to clipboard

Updating the `docker-compose-cql-es.yml`

Open tae898 opened this issue 10 months ago • 2 comments

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:

# 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

  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.

tae898 avatar Feb 06 '25 22:02 tae898

@tae898 Version compatibility matrix is available in the Changelog: https://docs.janusgraph.org/changelog/

porunov avatar Feb 10 '25 15:02 porunov

I have an issue starting the docker compose with the default config with minor changes to connect to AstraDB but it fails. At times, I see this message but the container is always unhealthy:

/etc/opt/janusgraph/janusgraph-server.yaml will be used to start Janusgraph in the foreground. None of the example works

ENate avatar Nov 24 '25 13:11 ENate