oc-shared/docker-compose.yml
2025-03-28 08:48:39 +01:00

25 lines
815 B
YAML

version: '3.4'
services:
oc-shared:
environment:
- MONGO_DATABASE=DC_myDC
image: 'oc-shared:latest'
ports:
- 8091:8080
container_name: oc-shared
labels:
- "traefik.enable=true"
- "traefik.http.routers.shared.entrypoints=web"
- "traefik.http.routers.shared.rule=PathPrefix(`/shared`)"
- "traefik.http.middlewares.shared-rewrite.replacepathregex.regex=^/shared(.*)"
- "traefik.http.middlewares.shared-rewrite.replacepathregex.replacement=/oc$$1"
- "traefik.http.routers.shared.middlewares=shared-rewrite"
- "traefik.http.services.shared.loadbalancer.server.port=8080"
- "traefik.http.middlewares.shared.forwardauth.address=http://oc-auth:8080/oc/forward"
networks:
- oc
networks:
oc:
external: true