nopaque/docker-compose.yml

43 lines
939 B
YAML
Raw Normal View History

version: '3.7'
services:
web:
build: .
2019-09-05 12:43:36 +00:00
container_name: opaque_flask
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque
volumes:
- .:/opaque
2019-09-05 12:43:36 +00:00
- $HOME/opaque_test:/home/compute/mnt/opaque
env_file:
- .env
2019-09-05 12:43:36 +00:00
- .env_database
ports:
- 5000:5000
2019-09-05 12:43:36 +00:00
depends_on:
- db
links:
- db
command: bash flask-entrypoint.sh
2019-09-05 12:43:36 +00:00
daemon:
container_name: opaque_daemon
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/daemon_opaque
network_mode: "host"
volumes:
- /home/stephan/Repos/own/opaque/data_dev.sqlite:/daemon/db/data_dev.sqlite
- $HOME/.docker/config.json:/root/.docker/config.json
depends_on:
- db
db:
container_name: opaque_db
image: postgres:11.5
env_file:
- .env_database
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
restart: always
volumes:
postgres_data: