mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
web:
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
env_file:
|
|
- db.env
|
|
- web.env
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
|
|
ports:
|
|
- 5000:5000
|
|
volumes:
|
|
- /mnt/opaque:/mnt/opaque
|
|
- ./app:/home/opaque/app
|
|
- ./config.py:/home/opaque/config.py
|
|
- ./logs:/home/opaque/logs
|
|
- ./opaque.py:/home/opaque/opaque.py
|
|
daemon:
|
|
depends_on:
|
|
- db
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
env_file:
|
|
- db.env
|
|
- web.env
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
|
volumes:
|
|
- ./logs:/home/opaque_daemon/logs
|
|
- ../opaque_daemon/opaque_daemon.py:/home/opaque_daemon/opaque_daemon.py
|
|
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
|
|
db:
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
env_file: db.env
|
|
image: postgres:alpine
|
|
volumes:
|
|
- /opaque_database:/var/lib/postgresql/data
|
|
redis:
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
image: redis:alpine
|