2019-09-06 09:38:35 +00:00
|
|
|
version: '3'
|
2019-09-04 12:51:46 +00:00
|
|
|
|
|
|
|
services:
|
2020-03-30 15:27:54 +00:00
|
|
|
reverse-proxy:
|
|
|
|
image: traefik:2.2
|
|
|
|
command:
|
|
|
|
- "--log.level=DEBUG"
|
|
|
|
- "--providers.docker=true"
|
|
|
|
- "--providers.docker.exposedbydefault=false"
|
|
|
|
- "--entrypoints.web.address=:80"
|
2020-01-09 14:13:47 +00:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
2020-03-30 15:27:54 +00:00
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
2019-09-06 11:42:47 +00:00
|
|
|
web:
|
2020-01-06 09:08:58 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2020-01-06 10:08:40 +00:00
|
|
|
env_file: nopaque.env
|
2019-09-06 11:00:11 +00:00
|
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
|
2020-03-30 15:27:54 +00:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
|
|
|
|
- "traefik.http.routers.nopaque.entrypoints=web"
|
2019-09-05 12:43:36 +00:00
|
|
|
volumes:
|
2020-03-30 15:27:54 +00:00
|
|
|
- "/mnt/nopaque:/mnt/nopaque"
|
|
|
|
- "./app:/home/nopaque/app"
|
|
|
|
- "./logs:/home/nopaque/logs"
|
|
|
|
- "./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-09-06 11:42:47 +00:00
|
|
|
daemon:
|
2020-01-06 09:08:58 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2020-01-06 08:36:51 +00:00
|
|
|
env_file: nopaque.env
|
2019-12-20 11:47:06 +00:00
|
|
|
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:
|
2020-03-30 15:27:54 +00:00
|
|
|
- "/mnt/nopaque:/mnt/nopaque"
|
|
|
|
- "./logs:/home/nopaqued/logs"
|
|
|
|
- "../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"
|
|
|
|
- "$HOME/.docker:/home/nopaqued/.docker"
|
2019-09-06 11:42:47 +00:00
|
|
|
db:
|
2020-01-06 08:36:51 +00:00
|
|
|
env_file: nopaque.env
|
2019-11-29 14:19:25 +00:00
|
|
|
image: postgres:11
|
2019-09-06 09:38:35 +00:00
|
|
|
volumes:
|
2020-03-30 15:27:54 +00:00
|
|
|
- "/srv/nopaque/database:/var/lib/postgresql/data"
|
2019-09-06 11:42:47 +00:00
|
|
|
redis:
|
2019-11-29 14:19:25 +00:00
|
|
|
image: redis:5
|