nopaque/docker_stack_deploy.yml
2019-12-02 11:57:08 +01:00

50 lines
1.1 KiB
YAML

version: '3'
services:
web:
deploy:
placement:
constraints:
- node.role == manager
labels:
- com.docker.lb.hosts=nopaque
- com.docker.lb.port=8080
- com.docker.lb.sticky_session_cookie=session
env_file:
- db.env
- web.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
ports:
- 5000:5000
volumes:
- /mnt/nopaque:/mnt/nopaque
- ./logs:/home/nopaque/logs
daemon:
deploy:
placement:
constraints:
- node.role == manager
env_file:
- db.env
- web.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
volumes:
- /mnt/nopaque:/mnt/nopaque
- ./logs:/home/nopaqued/logs
- $HOME/.docker/config.json:/home/nopaqued/.docker/config.json
db:
deploy:
placement:
constraints:
- node.role == manager
env_file: db.env
image: postgres:11
volumes:
- /srv/nopaque/database:/var/lib/postgresql/data
redis:
deploy:
placement:
constraints:
- node.role == manager
image: redis:5