2023-05-10 12:54:05 +02:00
version : "3.7"
services :
traefik :
container_name : bridgehead-traefik
image : docker.verbis.dkfz.de/cache/traefik:latest
command :
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.file.directory=/configuration/
2024-10-01 10:40:24 +02:00
- --api.dashboard=false
2023-05-10 12:54:05 +02:00
- --accesslog=true
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
labels :
- "traefik.enable=true"
2024-10-01 10:40:24 +02:00
- "traefik.http.routers.dashboard.rule=PathPrefix(`/api`) || PathPrefix(`/dashboard/`)"
2023-05-10 12:54:05 +02:00
- "traefik.http.routers.dashboard.entrypoints=websecure"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.tls=true"
- "traefik.http.routers.dashboard.middlewares=auth"
2023-07-27 15:38:29 +02:00
- "traefik.http.middlewares.auth.basicauth.users=${LDM_AUTH}"
2023-05-10 12:54:05 +02:00
ports :
- 80 : 80
- 443 : 443
volumes :
- /etc/bridgehead/traefik-tls:/certs:ro
- ../lib/traefik-configuration/:/configuration:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
forward_proxy :
container_name : bridgehead-forward-proxy
2024-11-12 11:00:13 +01:00
image : mitmproxy/mitmproxy
command : [ "mitmweb" , "-k" , "--mode" , "upstream:${HTTPS_PROXY}" , "--listen-port" , "3128" ]
2024-02-15 14:13:52 +01:00
healthcheck :
2024-03-18 12:45:46 +01:00
# Wait 1s before marking this service healthy. Required for the oauth2-proxy to talk to the OIDC provider on startup which will fail if the forward proxy is not started yet.
2024-11-12 11:00:13 +01:00
test : [ "CMD" , "sleep" , "10" ]
2023-05-10 12:54:05 +02:00
landing :
container_name : bridgehead-landingpage
2023-10-20 13:58:46 +02:00
image : docker.verbis.dkfz.de/cache/samply/bridgehead-landingpage:main
2023-05-10 12:54:05 +02:00
labels :
- "traefik.enable=true"
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
- "traefik.http.services.landing.loadbalancer.server.port=80"
- "traefik.http.routers.landing.tls=true"
environment :
HOST : ${HOST}
PROJECT : ${PROJECT}
SITE_NAME : ${SITE_NAME}
2024-08-15 09:10:37 +02:00
ENVIRONMENT : ${ENVIRONMENT}