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:
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: $PWD/caosdb-server/
# target: /opt/caosdb/mnt/caosdb-server
# - type: bind
# read_only: true
# source: /path/to/external/root/
# target: /opt/caosdb/mnt/extroot
envoy:
image: envoyproxy/envoy:v1.21-latest
# environment:
# ENVOY_UID: 987
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 appropriately, 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