2019-11-26 10:39:27 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
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:
|
2019-12-02 10:57:08 +00:00
|
|
|
- /mnt/nopaque:/mnt/nopaque
|
2019-12-02 15:58:44 +00:00
|
|
|
- ./app:/home/nopaque/app
|
2019-12-02 10:57:08 +00:00
|
|
|
- ./logs:/home/nopaque/logs
|
2019-12-02 15:58:44 +00:00
|
|
|
- ./migrations:/home/nopaque/migrations
|
|
|
|
- ./tests:/home/nopaque/tests
|
|
|
|
- ./config.py:/home/nopaque/config.py
|
|
|
|
- ./docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
|
|
|
|
- ./nopaque.py:/home/nopaque/nopaque.py
|
|
|
|
- ./requirements.txt:/home/nopaque/requirements.txt
|
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:57:08 +00:00
|
|
|
- /mnt/nopaque:/mnt/nopaque
|
|
|
|
- ./logs:/home/nopaqued/logs
|
2019-12-02 15:58:44 +00:00
|
|
|
- ../opaque_daemon/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
|
|
|
|
- ../opaque_daemon/nopaqued.py:/home/nopaqued/nopaqued.py
|
|
|
|
- ../opaque_daemon/merge_corpus_files.py:/home/nopaqued/merge_corpus_files.py
|
|
|
|
- ../opaque_daemon/requirements.txt:/home/nopaqued/requirements.txt
|
2019-12-02 10:57:08 +00:00
|
|
|
- $HOME/.docker/config.json:/home/nopaqued/.docker/config.json
|
2019-11-26 10:39:27 +00:00
|
|
|
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:
|
2019-12-02 10:57:08 +00:00
|
|
|
- /srv/nopaque/database:/var/lib/postgresql/data
|
2019-11-26 10:39:27 +00:00
|
|
|
redis:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
2019-12-02 10:06:46 +00:00
|
|
|
image: redis:5
|