nopaque/docker_stack_deploy.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2019-11-26 10:39:27 +00:00
version: '3'
services:
web:
deploy:
placement:
constraints:
- node.role == manager
2019-12-02 10:06:46 +00:00
labels:
- com.docker.lb.hosts=web.opaque
- com.docker.lb.port=8080
- com.docker.lb.sticky_session_cookie=session
2019-11-26 10:39:27 +00:00
env_file:
- db.env
- web.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
ports:
- 5000:5000
volumes:
2019-12-02 10:06:46 +00:00
- /mnt/opaque:/mnt/opaque
2019-11-26 13:58:41 +00:00
- ./logs:/home/opaque/logs
2019-11-26 10:39:27 +00:00
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:
2019-12-02 10:06:46 +00:00
- /mnt/opaque:/mnt/opaque
2019-11-26 13:58:41 +00:00
- ./logs:/home/opaque_daemon/logs
2019-11-26 10:39:27 +00:00
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
db:
deploy:
placement:
constraints:
- node.role == manager
env_file: db.env
2019-12-02 10:06:46 +00:00
image: postgres:11
2019-11-26 10:39:27 +00:00
volumes:
- /srv/opaque/database:/var/lib/postgresql/data
redis:
deploy:
placement:
constraints:
- node.role == manager
2019-12-02 10:06:46 +00:00
image: redis:5