Skip to content
Snippets Groups Projects
docker-compose.yml 1.62 KiB
Newer Older
version: '3.6'
services:
  # the SQL backend
  sqldb:
    image: mariadb:10.5
    volumes:
      - type: volume
        source: "caosdb-sqldata"
        target: /var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: caosdb1234
    networks:
      - caosnet
  caosdb-server:
    image: "caosdb/caosdb:0.9.0"
    depends_on:
      - sqldb
    networks:
      - caosnet
    # Pass information to the running docker ontainer.
    # These variables should be set when calling docker-compose.
    environment:
      - SQL_RESTORE
      - NIS_ENABLE
      - NIS_DOMAIN
      - NIS_SERVER
      - LDAP_ENABLE
      - PORT_SSL
      - DOCKER_TZ
      - DOCKER_MAIL
      - MAKE_TEST
      - DEBUG
      - LOCAL_USERS
      - ANON_ADMIN
      - NO_TLS
    volumes:
      - type: volume
        source: "caosdb-tmpfiles"
        target: /opt/caosdb/mnt/tmpfiles
      - type: volume
        source: "caosdb-caosroot"
        target: /opt/caosdb/mnt/caosroot
#      - type: bind
#        read_only: true
#        source: "/path/to/other"
#        target: /opt/caosdb/mnt/other
  envoy:
    image: envoyproxy/envoy:v1.21-latest
    volumes:
      - type: bind
        read_only: true
        source: $PWD/compose/envoy.yml
        target: /etc/envoy/envoy.yaml
#      - type: bind
#        read_only: true
#        source: $PWD/compose/certs
#        target: /etc/envoy/certs
    networks:
      - caosnet
    ports:
      # first part is the bind ip; adjust apropriately, 0.0.0.0 as wild card
      - 127.0.0.1:8081:8081

# A well-defined network for caosdb
volumes:
    caosdb-sqldata:
    caosdb-tmpfiles:
    caosdb-caosroot:
networks:
  caosnet:
    driver: bridge