diff --git a/docker-compose.yml b/docker-compose.yml index 0ffd400..c6e3f5a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,10 +6,13 @@ services: - MONGO_DATABASE=DC_myDC image: 'oc-scheduler:latest' labels: - - "traefik.enable=true" - - "traefik.http.middlewares.scheduler.forwardauth.address=http://oc-auth:8080/oc/forward" - - "traefik.http.middlewares.scheduler.forwardauth.authResponseHeaders=X-Forwarded-User" - - "traefik.http.services.scheduler.loadbalancer.server.port=8080" + - "traefik.enable=true" + - "traefik.http.routers.scheduler.entrypoints=web" + - "traefik.http.routers.scheduler.rule=Host(`localhost`)" + - "traefik.routers.scheduler.rule=Path(/scheduler)" + - "traefik.http.routers.scheduler.tls=false" + - "traefik.http.services.scheduler.loadbalancer.server.port=80" + - "traefik.http.routers.scheduler.middlewares=auth" ports: - 8090:8080 container_name: oc-scheduler