@@ -13,6 +13,42 @@ services:
1313 static-webserver :
1414 hostname : " {{.Node.Hostname}}-{{.Service.Name}}"
1515 traefik :
16+ command :
17+ - " --api=true"
18+ - " --api.dashboard=true"
19+ - " --ping=true"
20+ - " --entryPoints.ping.address=:9082"
21+ - " --ping.entryPoint=ping"
22+ - " --log.level=${SIMCORE_TRAEFIK_LOGLEVEL}"
23+ - " --accesslog=false"
24+ - " --metrics.prometheus=true"
25+ - " --metrics.prometheus.addEntryPointsLabels=true"
26+ - " --metrics.prometheus.addServicesLabels=true"
27+ - " --entryPoints.metrics.address=:8082"
28+ - " --metrics.prometheus.entryPoint=metrics"
29+ - " --entryPoints.http.address=:80"
30+ - " --entryPoints.http.forwardedHeaders.insecure"
31+ - " --entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" # 6h, for https://github.com/traefik/traefik/issues/10805
32+ - " --entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" # 6h, for https://github.com/traefik/traefik/issues/10805
33+ - " --entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" # 6h, for https://github.com/traefik/traefik/issues/10805
34+ - " --entryPoints.postgres.address=:5432"
35+ - " --entryPoints.simcore_api.address=:10081"
36+ - " --entryPoints.simcore_api.forwardedHeaders.insecure"
37+ - " --entryPoints.simcore_api.transport.respondingTimeouts.idleTimeout=21600s" # 6h, for https://github.com/traefik/traefik/issues/10805
38+ - " --entryPoints.simcore_api.transport.respondingTimeouts.writeTimeout=21600s" # 6h, for https://github.com/traefik/traefik/issues/10805
39+ - " --entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" # 6h, for https://github.com/traefik/traefik/issues/10805
40+ - " --entryPoints.traefik_monitor.address=:8080"
41+ - " --entryPoints.traefik_monitor.forwardedHeaders.insecure"
42+ - " --providers.swarm.endpoint=unix:///var/run/docker.sock"
43+ - " --providers.swarm.network=${SWARM_STACK_NAME}_default"
44+ # https://github.com/traefik/traefik/issues/7886
45+ - " --providers.swarm.refreshSeconds=1"
46+ - " --providers.swarm.exposedByDefault=false"
47+ - " --providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
48+ - " --tracing"
49+ - " --tracing.addinternals"
50+ - " --tracing.otlp=true"
51+ - " --tracing.otlp.http=true"
1652 deploy :
1753 labels :
1854 - prometheus-job=traefik_simcore_production
0 commit comments