This commit is contained in:
mr 2024-10-30 17:10:36 +01:00
parent 5167726f68
commit edb6303630

View File

@ -6,10 +6,13 @@ services:
- MONGO_DATABASE=DC_myDC - MONGO_DATABASE=DC_myDC
image: 'oc-peer:latest' image: 'oc-peer:latest'
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.middlewares.peer.forwardauth.address=http://oc-auth:8080/oc/forward" - "traefik.http.routers.peer.entrypoints=web"
- "traefik.http.middlewares.peer.forwardauth.authResponseHeaders=X-Forwarded-User" - "traefik.http.routers.peer.rule=Host(`localhost`)"
- "traefik.http.services.peer.loadbalancer.server.port=8080" - "traefik.routers.peer.rule=Path(/peer)"
- "traefik.http.routers.peer.tls=false"
- "traefik.http.services.peer.loadbalancer.server.port=80"
- "traefik.http.routers.peer.middlewares=auth"
ports: ports:
- 8093:8080 - 8093:8080
container_name: oc-peer container_name: oc-peer