mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
81 lines
2.8 KiB
YAML
81 lines
2.8 KiB
YAML
version: '3.5'
|
|
|
|
networks:
|
|
reverse-proxy:
|
|
external:
|
|
name: reverse-proxy
|
|
|
|
volumes:
|
|
redis-trash1:
|
|
|
|
services:
|
|
web:
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
env_file: nopaque.env
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
|
|
labels:
|
|
- "traefik.docker.network=reverse-proxy"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.nopaque.entrypoints=web"
|
|
# Change the next line to match your nopaque domain.
|
|
- "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
|
|
# The next two lines enable HTTPS.
|
|
# - "traefik.http.routers.nopaque.entrypoints=websecure"
|
|
# - "traefik.http.routers.nopaque.tls.certresolver=myresolver"
|
|
# The next two lines add Basic Authentication. More information: https://docs.traefik.io/middlewares/basicauth/
|
|
# - "traefik.http.middlewares.nopaque.basicauth.users=name:hashed-password"
|
|
# - "traefik.http.routers.nopaque.middlewares=nopaque"
|
|
networks:
|
|
- default
|
|
- reverse-proxy
|
|
volumes:
|
|
- "/mnt/dind-swarm/nopaque:/mnt/dind-swarm/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"
|
|
daemon:
|
|
depends_on:
|
|
- db
|
|
env_file: nopaque.env
|
|
extra_hosts:
|
|
- "host.docker.internal:172.17.0.1"
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
|
volumes:
|
|
- "/mnt/dind-swarm/nopaque:/mnt/dind-swarm/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/requirements.txt:/home/nopaqued/requirements.txt"
|
|
- "$HOME/.docker:/home/nopaqued/.docker"
|
|
notify:
|
|
depends_on:
|
|
- db
|
|
env_file: nopaque.env
|
|
extra_hosts:
|
|
- "host.docker.internal:172.17.0.1"
|
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_notify:latest
|
|
volumes:
|
|
- "./logs:/home/nopaquen/logs"
|
|
- "../opaque_notify/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh"
|
|
- "../opaque_notify/nopaquen.py:/home/nopaquen/nopaquen.py"
|
|
- "../opaque_notify/notify:/home/nopaquen/notify"
|
|
- "../opaque_notify/templates:/home/nopaquen/templates"
|
|
- "../opaque_notify/requirements.txt:/home/nopaquen/requirements.txt"
|
|
- "$HOME/.docker:/home/nopaquen/.docker"
|
|
db:
|
|
env_file: nopaque.env
|
|
image: postgres:11
|
|
volumes:
|
|
- "/srv/nopaque/db:/var/lib/postgresql/data"
|
|
redis:
|
|
image: redis:5
|
|
volumes:
|
|
- "redis-trash1:/data"
|