bridgehead/dktk-fed/docker-compose.yml

61 lines
1.9 KiB
YAML
Raw Normal View History

2022-02-16 09:59:53 +01:00
version: "3.7"
services:
traefik:
container_name: bridgehead_traefik
image: traefik:2.4
command:
- --api.insecure=true
- --entrypoints.web.address=:80
2022-03-18 10:52:58 +01:00
- --entrypoints.websecure.address=:443
2022-02-16 09:59:53 +01:00
- --providers.docker=true
2022-03-02 13:41:23 +01:00
- --providers.file.directory=/configuration/
2022-03-18 10:52:58 +01:00
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
2022-03-02 13:41:23 +01:00
- --providers.file.watch=true
2022-02-16 09:59:53 +01:00
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- ../certs:/tools/certs
2022-03-02 13:41:23 +01:00
- ../tools/traefik/:/configuration/
2022-02-16 09:59:53 +01:00
- /var/run/docker.sock:/var/run/docker.sock:ro
- ../auth/:/auth
extra_hosts:
- "host.docker.internal:host-gateway"
landing:
container_name: bridgehead_landingpage
image: nginx:stable
volumes:
- ../landing/:/usr/share/nginx/html
labels:
- "traefik.enable=true"
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
- "traefik.http.services.landing.loadbalancer.server.port=80"
2022-03-02 13:41:23 +01:00
- "traefik.http.routers.landing.tls=true"
2022-02-16 09:59:53 +01:00
blaze:
image: "samply/blaze:0.16"
2022-02-16 09:59:53 +01:00
container_name: bridgehead_dktk_blaze
environment:
BASE_URL: "http://blaze:8080"
JAVA_TOOL_OPTIONS: "-Xmx4g"
LOG_LEVEL: "debug"
ENFORCE_REFERENTIAL_INTEGRITY: "false"
volumes:
- "blaze-data:/app/data"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.test-auth.basicauth.usersfile=/auth/dktk"
2022-02-16 09:59:53 +01:00
- "traefik.http.routers.blaze_dktk.rule=PathPrefix(`/dktk-localdatamanagement`)"
- "traefik.http.middlewares.dktk_b_strip.stripprefix.prefixes=/dktk-localdatamanagement"
- "traefik.http.services.blaze_dktk.loadbalancer.server.port=8080"
2022-03-18 10:52:58 +01:00
- "traefik.http.routers.blaze_dktk.middlewares=dktk_b_strip,test-auth"
- "traefik.http.routers.blaze_dktk.tls=true"
2022-02-16 09:59:53 +01:00
volumes:
blaze-data: