Traefik define routing networks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-22 18:56:17 +01:00
parent 89670b5987
commit c71f41230f
23 changed files with 35 additions and 4 deletions

View File

@ -33,6 +33,7 @@ services:
- traefik
labels:
traefik.enable: 'true'
traefik.docker.network: '${COMPOSE_PROJECT_NAME}_default'
traefik.http.routers.oauth.entrypoints: websecure
traefik.http.routers.oauth.rule: Host(`traefik-fa.tobiasmanske.de`) || (PathPrefix(`/oauth2`) && !Host(`rss.tobiasmanske.de`))
traefik.http.services.oauth.loadbalancer.server.port: '4180'
@ -62,6 +63,7 @@ services:
image: containous/whoami
labels:
- "traefik.enable=true"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_default"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.http.routers.whoami.rule=Host(`test.tobiasmanske.de`)"
- "traefik.http.routers.whoami.entryPoints=websecure"