mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
66 lines
1.6 KiB
YAML
66 lines
1.6 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:
|
|
- storage:/mnt/opaque
|
|
- ./app:/home/opaque/app
|
|
- ./config.py:/home/opaque/config.py
|
|
- ./docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
|
|
- ./logs:/home/opaque/logs
|
|
- ./migrations:/home/opaque/migrations
|
|
- ./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:
|
|
- storage:/mnt/opaque
|
|
- ./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
|
|
- ../opaque_daemon/config.ini:/home/opaque_daemon/config.ini
|
|
db:
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
env_file: db.env
|
|
image: postgres:11-alpine
|
|
volumes:
|
|
- /srv/opaque/database:/var/lib/postgresql/data
|
|
redis:
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
image: redis:alpine
|
|
|
|
volumes:
|
|
storage:
|
|
driver: local
|
|
driver_opts:
|
|
device: "//127.0.0.1/opaque_storage"
|
|
o: "gid=1000,password=opaque,uid=1000,username=opaque"
|
|
type: cifs
|