diff --git a/services/simcore/docker-compose.yml b/services/simcore/docker-compose.yml index ae919eb7..a836268d 100644 --- a/services/simcore/docker-compose.yml +++ b/services/simcore/docker-compose.yml @@ -869,6 +869,7 @@ services: dynamic-schdlr: networks: + - public - monitored deploy: replicas: 2 @@ -882,6 +883,16 @@ services: reservations: memory: 50M cpus: '0.1' + labels: + - traefik.enable=true + - traefik.docker.network=${PUBLIC_NETWORK} + - traefik.http.services.${PREFIX_STACK_NAME}_dynamic_scheduler.loadbalancer.server.port=8000 + - traefik.http.routers.${PREFIX_STACK_NAME}_dynamic_scheduler.rule=Host(`${MONITORING_DOMAIN}`) && PathPrefix(`/dynamic-scheduler`) + - traefik.http.routers.${PREFIX_STACK_NAME}_dynamic_scheduler.entrypoints=https + - traefik.http.routers.${PREFIX_STACK_NAME}_dynamic_scheduler.tls=true + - traefik.http.middlewares.${PREFIX_STACK_NAME}_dynamic_scheduler_replace_regex.replacepathregex.regex=^/dynamic-scheduler/(.*)$$ + - traefik.http.middlewares.${PREFIX_STACK_NAME}_dynamic_scheduler_replace_regex.replacepathregex.replacement=/$${1} + - traefik.http.routers.${PREFIX_STACK_NAME}_dynamic_scheduler.middlewares=${PREFIX_STACK_NAME}_dynamic_scheduler_replace_regex@swarm, ops_gzip@swarm, ops_auth@swarm volumes: rabbit_data: