# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

services:
  janusgraph:
    image: docker.io/bitnami/janusgraph:1
    ports:
      - '8182:8182'
    environment:
      - JANUSGRAPH_CFG_STORAGE_BACKEND=cql
      - JANUSGRAPH_CFG_STORAGE_HOSTNAME=cassandra
      - JANUSGRAPH_CFG_STORAGE_PORT=9042
      - JANUSGRAPH_CFG_STORAGE_USERNAME=bn_janusgraph
      - JANUSGRAPH_CFG_STORAGE_PASSWORD=bitnami123
    volumes:
      - "janusgraph_data:/bitnami/janusgraph"
  cassandra:
    image: docker.io/bitnami/cassandra:latest
    volumes:
      - 'cassandra_data:/bitnami'
    environment:
      - CASSANDRA_SEEDS=cassandra
      - CASSANDRA_PASSWORD_SEEDER=yes
      - CASSANDRA_USER=bn_janusgraph
      - CASSANDRA_PASSWORD=bitnami123
volumes:
  janusgraph_data:
    driver: local
  cassandra_data:
    driver: local
