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