nopaque/docker-compose.yml

38 lines
926 B
YAML
Raw Normal View History

2019-09-06 09:38:35 +00:00
version: '3'
services:
2019-09-06 11:42:47 +00:00
web:
2019-09-06 09:38:35 +00:00
depends_on:
2019-09-06 11:42:47 +00:00
- db
- redis
env_file:
2019-09-06 11:11:32 +00:00
- opaque_database.env
- opaque.env
2019-09-06 11:00:11 +00:00
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
ports:
- 5000:5000
2019-09-06 09:38:35 +00:00
restart: always
2019-09-05 12:43:36 +00:00
volumes:
2019-09-06 09:38:35 +00:00
- /opaque_storage:/opaque_storage
- ./app:/home/opaque/app
- ./config.py:/home/opaque/config.py
- ./migrations:/home/opaque/migrations
- ./opaque.py:/home/opaque/opaque.py
2019-09-06 11:42:47 +00:00
daemon:
2019-09-05 12:43:36 +00:00
depends_on:
2019-09-06 11:42:47 +00:00
- db
2019-09-06 11:11:32 +00:00
env_file: opaque_database.env
2019-09-06 09:38:35 +00:00
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
restart: always
2019-09-05 12:43:36 +00:00
volumes:
2019-09-06 09:38:35 +00:00
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
2019-09-06 11:42:47 +00:00
db:
2019-09-06 11:11:32 +00:00
env_file: opaque_database.env
2019-09-06 09:38:35 +00:00
image: postgres:alpine
restart: always
volumes:
- /opaque_database:/var/lib/postgresql/data
2019-09-06 11:42:47 +00:00
redis:
2019-09-06 09:38:35 +00:00
image: redis:alpine
2019-09-05 12:43:36 +00:00
restart: always