nopaque/docker-compose.yml
2019-09-06 14:00:16 +02:00

38 lines
926 B
YAML

version: '3'
services:
web:
depends_on:
- db
- redis
env_file:
- opaque_database.env
- opaque.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
ports:
- 5000:5000
restart: always
volumes:
- /opaque_storage:/opaque_storage
- ./app:/home/opaque/app
- ./config.py:/home/opaque/config.py
- ./migrations:/home/opaque/migrations
- ./opaque.py:/home/opaque/opaque.py
daemon:
depends_on:
- db
env_file: opaque_database.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
restart: always
volumes:
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
db:
env_file: opaque_database.env
image: postgres:alpine
restart: always
volumes:
- /opaque_database:/var/lib/postgresql/data
redis:
image: redis:alpine
restart: always