nopaque/docker-compose.yml

80 lines
3.1 KiB
YAML
Raw Normal View History

2020-04-08 15:21:42 +00:00
version: '3.5'
2020-04-08 15:21:42 +00:00
networks:
2020-03-30 15:27:54 +00:00
reverse-proxy:
2020-04-08 15:21:42 +00:00
external:
name: reverse-proxy
volumes:
redis-trash1:
2020-04-08 15:21:42 +00:00
services:
2019-09-06 11:42:47 +00:00
web:
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:
2020-04-08 15:21:42 +00:00
- "traefik.docker.network=reverse-proxy"
2020-03-30 15:27:54 +00:00
- "traefik.enable=true"
2020-05-26 12:40:44 +00:00
### <http> ###
2020-05-26 13:39:46 +00:00
- "traefik.http.middlewares.nopaque-headers.headers.customrequestheaders.X-Forwarded-Proto=http"
2020-04-28 09:20:35 +00:00
- "traefik.http.routers.nopaque.entrypoints=web"
2020-05-26 13:39:46 +00:00
- "traefik.http.routers.nopaque.middlewares=nopaque-headers"
2020-05-26 12:40:44 +00:00
- "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)" # Change this to match your nopaque domain
### </http> ###
### <https> ###
2020-05-26 13:39:46 +00:00
- "traefik.http.middlewares.nopaquesecure-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
2020-05-26 12:40:44 +00:00
- "traefik.http.routers.nopaquesecure.entrypoints=websecure"
2020-05-26 13:39:46 +00:00
- "traefik.http.routers.nopaquesecure.middlewares=nopaquesecure-headers"
2020-05-26 12:40:44 +00:00
- "traefik.http.routers.nopaquesecure.rule=Host(`nopaque.localhost`)" # Change this to match your nopaque domain
- "traefik.http.routers.nopaquesecure.tls=true"
### </https> ###
### <basicauth help="https://docs.traefik.io/middlewares/basicauth/"> ###
2020-05-26 13:39:46 +00:00
# - "traefik.http.middlewares.nopaque-basicauth.basicauth.users=name:hashed-password"
# - "traefik.http.routers.nopaque.middlewares=nopaque-basicauth, nopaque-headers"
# - "traefik.http.middlewares.nopaquesecure-basicauth.basicauth.users=name:hashed-password"
# - "traefik.http.routers.nopaquesecure.middlewares=nopaquesecure-basicauth, nopaquesecure-headers"
2020-05-26 12:40:44 +00:00
### </basicauth> ###
2020-04-08 15:21:42 +00:00
networks:
- default
- reverse-proxy
2019-09-05 12:43:36 +00:00
volumes:
2020-04-09 05:57:52 +00:00
- "/mnt/dind-swarm/nopaque:/mnt/dind-swarm/nopaque"
2020-03-30 15:27:54 +00:00
- "./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:
depends_on:
- db
- web
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:
2020-04-09 05:57:52 +00:00
- "/mnt/dind-swarm/nopaque:/mnt/dind-swarm/nopaque"
2020-03-30 15:27:54 +00:00
- "./logs:/home/nopaqued/logs"
- "../opaque_daemon/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh"
- "../opaque_daemon/nopaqued.py:/home/nopaqued/nopaqued.py"
2020-05-15 12:43:12 +00:00
- "../opaque_daemon/decorators.py:/home/nopaqued/decorators.py"
- "../opaque_daemon/notify:/home/nopaqued/notify"
- "../opaque_daemon/templates:/home/nopaqued/templates"
2020-03-30 15:27:54 +00:00
- "../opaque_daemon/requirements.txt:/home/nopaqued/requirements.txt"
- "$HOME/.docker:/home/nopaqued/.docker"
2019-09-06 11:42:47 +00:00
db:
env_file: nopaque.env
image: postgres:11
2019-09-06 09:38:35 +00:00
volumes:
2020-04-09 06:18:04 +00:00
- "/srv/nopaque/db:/var/lib/postgresql/data"
2019-09-06 11:42:47 +00:00
redis:
image: redis:5
volumes:
- "redis-trash1:/data"