nopaque/docker-compose.yml

81 lines
2.5 KiB
YAML
Raw Normal View History

2019-09-06 09:38:35 +00:00
version: '3'
services:
2020-01-06 10:08:40 +00:00
# traefik:
# command:
# - "--api.insecure=true"
# - "--providers.docker=true"
# - "--providers.docker.exposedbydefault=false"
# - "--entrypoints.nopaque.address=:5000"
# image: traefik:2.0
# ports:
# - 5000:5000
# - 9090:8080
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro
2019-09-06 11:42:47 +00:00
web:
depends_on:
- db
- redis
deploy:
placement:
constraints:
- node.role == manager
2020-01-06 10:08:40 +00:00
env_file: nopaque.env
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.nopaque.entrypoints=nopaque"
# - "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
# # Use sticky sessions for load balancing
# # Socket.IO is not compatible with cookie sticky sessions which are the
# # only available option in traefik
# - "traefik.http.services.web-opaque.loadbalancer.sticky=true"
# - "traefik.http.services.web-opaque.loadbalancer.sticky.cookie.httpOnly=true"
2019-12-05 14:37:06 +00:00
ports:
2019-12-06 09:29:38 +00:00
- "5000:5000"
2019-09-06 11:00:11 +00:00
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
2019-09-05 12:43:36 +00:00
volumes:
2019-12-02 10:57:08 +00:00
- /mnt/nopaque:/mnt/nopaque
2019-12-02 10:34:28 +00:00
- ./app:/home/nopaque/app
- ./logs:/home/nopaque/logs
- ./migrations:/home/nopaque/migrations
- ./tests:/home/nopaque/tests
- ./config.py:/home/nopaque/config.py
2019-11-29 14:08:16 +00:00
- ./docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
2019-12-02 10:34:28 +00:00
- ./nopaque.py:/home/nopaque/nopaque.py
- ./requirements.txt:/home/nopaque/requirements.txt
2019-09-06 11:42:47 +00:00
daemon:
depends_on:
- db
deploy:
placement:
constraints:
- node.role == manager
env_file: nopaque.env
extra_hosts:
- "host.docker.internal:172.17.0.1"
2019-09-06 09:38:35 +00:00
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
2019-09-05 12:43:36 +00:00
volumes:
2019-12-02 10:57:08 +00:00
- /mnt/nopaque:/mnt/nopaque
2019-12-02 10:34:28 +00:00
- ./logs:/home/nopaqued/logs
2019-11-29 14:08:16 +00:00
- ../opaque_daemon/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
2019-12-02 15:58:44 +00:00
- ../opaque_daemon/nopaqued.py:/home/nopaqued/nopaqued.py
2019-12-02 10:34:28 +00:00
- ../opaque_daemon/merge_corpus_files.py:/home/nopaqued/merge_corpus_files.py
- ../opaque_daemon/requirements.txt:/home/nopaqued/requirements.txt
2019-12-05 14:37:46 +00:00
- $HOME/.docker:/home/nopaqued/.docker
2019-09-06 11:42:47 +00:00
db:
deploy:
placement:
constraints:
- node.role == manager
env_file: nopaque.env
image: postgres:11
2019-09-06 09:38:35 +00:00
volumes:
2019-12-02 10:57:08 +00:00
- /srv/nopaque/database:/var/lib/postgresql/data
2019-09-06 11:42:47 +00:00
redis:
deploy:
placement:
constraints:
- node.role == manager
image: redis:5