2019-09-06 09:38:35 +00:00
|
|
|
version: '3'
|
2019-09-04 12:51:46 +00:00
|
|
|
|
|
|
|
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
|
2019-09-09 08:49:17 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-04 12:51:46 +00:00
|
|
|
env_file:
|
2019-09-06 12:23:58 +00:00
|
|
|
- db.env
|
|
|
|
- web.env
|
2019-09-06 11:00:11 +00:00
|
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
|
2019-09-04 12:51:46 +00:00
|
|
|
ports:
|
|
|
|
- 5000:5000
|
2019-09-05 12:43:36 +00:00
|
|
|
volumes:
|
2019-09-13 12:01:57 +00:00
|
|
|
- storage:/mnt/opaque
|
2019-09-06 12:00:16 +00:00
|
|
|
- ./app:/home/opaque/app
|
|
|
|
- ./config.py:/home/opaque/config.py
|
2019-10-17 09:21:58 +00:00
|
|
|
- ./docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
|
2019-09-12 09:35:23 +00:00
|
|
|
- ./logs:/home/opaque/logs
|
2019-09-13 07:32:30 +00:00
|
|
|
- ./migrations:/home/opaque/migrations
|
2019-09-06 12:00:16 +00:00
|
|
|
- ./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-09 08:49:17 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-12 09:42:33 +00:00
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
- web.env
|
2019-09-06 09:38:35 +00:00
|
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
2019-09-05 12:43:36 +00:00
|
|
|
volumes:
|
2019-10-22 11:07:06 +00:00
|
|
|
- storage:/mnt/opaque
|
2019-09-12 10:01:46 +00:00
|
|
|
- ./logs:/home/opaque_daemon/logs
|
2019-09-13 07:22:10 +00:00
|
|
|
- ../opaque_daemon/opaque_daemon.py:/home/opaque_daemon/opaque_daemon.py
|
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-09 08:49:17 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-06 12:23:58 +00:00
|
|
|
env_file: db.env
|
2019-10-15 13:14:06 +00:00
|
|
|
image: postgres:11-alpine
|
2019-09-06 09:38:35 +00:00
|
|
|
volumes:
|
2019-09-13 12:01:57 +00:00
|
|
|
- /srv/opaque/database:/var/lib/postgresql/data
|
2019-09-06 11:42:47 +00:00
|
|
|
redis:
|
2019-09-09 08:49:17 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-09-06 09:38:35 +00:00
|
|
|
image: redis:alpine
|
2019-09-13 12:01:57 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
storage:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
device: "//127.0.0.1/opaque_storage"
|
|
|
|
o: "gid=1000,password=opaque,uid=1000,username=opaque"
|
|
|
|
type: cifs
|