diff --git a/docker-compose.yml b/docker-compose.yml index d7129d1..c7fe809 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,12 +18,11 @@ services: - "traefik.http.services.expertisa-master.loadbalancer.healthcheck.path=/health/readiness" - "traefik.http.services.expertisa-master.loadbalancer.healthcheck.interval=5s" - - "traefik.http.routers.expertisa-master-${REPLICA}.rule=HostRegexp(`(?i)master-${REPLICA}\\..+`)" - - "traefik.http.routers.expertisa-master-${REPLICA}.tls=true" + - "traefik.http.routers.expertisa-master-{{ .Name }}.rule=HostRegexp(`(?i)master-{{ .Name }}\\..+`)" + - "traefik.http.routers.expertisa-master-{{ .Name }}.tls=true" environment: JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90" - REPLICA: "{{.Task.Slot}}" network_mode: bridge