2019-09-06 11:38:35 +02:00
|
|
|
version: '3'
|
2019-09-04 14:51:46 +02:00
|
|
|
|
|
|
|
services:
|
2019-09-06 13:42:47 +02:00
|
|
|
web:
|
2019-09-06 11:38:35 +02:00
|
|
|
depends_on:
|
2019-09-06 13:42:47 +02:00
|
|
|
- db
|
|
|
|
- redis
|
2019-09-09 10:49:17 +02:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-04 14:51:46 +02:00
|
|
|
env_file:
|
2019-09-06 14:23:58 +02:00
|
|
|
- db.env
|
|
|
|
- web.env
|
2019-09-06 13:00:11 +02:00
|
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
|
2019-09-04 14:51:46 +02:00
|
|
|
ports:
|
|
|
|
- 5000:5000
|
2019-09-05 14:43:36 +02:00
|
|
|
volumes:
|
2019-09-09 15:21:29 +02:00
|
|
|
- /mnt/opaque:/mnt/opaque
|
2019-09-06 14:00:16 +02:00
|
|
|
- ./app:/home/opaque/app
|
|
|
|
- ./config.py:/home/opaque/config.py
|
|
|
|
- ./migrations:/home/opaque/migrations
|
|
|
|
- ./opaque.py:/home/opaque/opaque.py
|
2019-09-06 13:42:47 +02:00
|
|
|
daemon:
|
2019-09-05 14:43:36 +02:00
|
|
|
depends_on:
|
2019-09-06 13:42:47 +02:00
|
|
|
- db
|
2019-09-09 10:49:17 +02:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-06 14:23:58 +02:00
|
|
|
env_file: db.env
|
2019-09-06 11:38:35 +02:00
|
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
2019-09-05 14:43:36 +02:00
|
|
|
volumes:
|
2019-09-06 11:38:35 +02:00
|
|
|
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
|
2019-09-06 13:42:47 +02:00
|
|
|
db:
|
2019-09-09 10:49:17 +02:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-06 14:23:58 +02:00
|
|
|
env_file: db.env
|
2019-09-06 11:38:35 +02:00
|
|
|
image: postgres:alpine
|
|
|
|
volumes:
|
2019-09-09 14:58:49 +02:00
|
|
|
- /opaque_database:/var/lib/postgresql/data
|
2019-09-06 13:42:47 +02:00
|
|
|
redis:
|
2019-09-09 10:49:17 +02:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-06 11:38:35 +02:00
|
|
|
image: redis:alpine
|