Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 37 additions & 34 deletions services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1400,40 +1400,43 @@ services:
image: "traefik:v3.5.2@sha256:07ff0c6c2114233b82e1de8e9f4fee9974470cd8d42c22e4e158538d950e19ae"
init: true
hostname: "{{.Node.Hostname}}-{{.Task.Slot}}"
command:
- "--api=true"
- "--api.dashboard=true"
- "--ping=true"
- "--entryPoints.ping.address=:9082"
- "--ping.entryPoint=ping"
- "--log.level=WARN" # WARN, not WARNING
- "--accesslog=false"
- "--metrics.prometheus=true"
- "--metrics.prometheus.addEntryPointsLabels=true"
- "--metrics.prometheus.addServicesLabels=true"
- "--entryPoints.metrics.address=:8082"
- "--metrics.prometheus.entryPoint=metrics"
- "--entryPoints.http.address=:80"
- "--entryPoints.http.forwardedHeaders.insecure"
- "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file uploads
- "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file downloads
- "--entryPoints.simcore_api.address=:10081"
- "--entryPoints.simcore_api.forwardedHeaders.insecure"
- "--entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file uploads
- "--entryPoints.simcore_api.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file downloads
- "--entryPoints.traefik_monitor.address=:8080"
- "--entryPoints.traefik_monitor.forwardedHeaders.insecure"
- "--providers.swarm.endpoint=unix:///var/run/docker.sock"
- "--providers.swarm.network=${SWARM_STACK_NAME}_default"
# https://github.com/traefik/traefik/issues/7886
- "--providers.swarm.refreshSeconds=1"
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
- "--tracing"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.sampleRate=${TRACING_OPENTELEMETRY_SAMPLING_PROBABILITY}"
# https://github.com/traefik/traefik/blob/v3.5.2/docs/content/reference/static-configuration/env-ref.md
environment:
TRAEFIK_API: "true"
TRAEFIK_API_DASHBOARD: "true"
TRAEFIK_PING: "true"
TRAEFIK_ENTRYPOINTS_PING_ADDRESS: ":9082"
TRAEFIK_PING_ENTRYPOINT: "ping"
TRAEFIK_LOG_LEVEL: "WARN"
TRAEFIK_ACCESSLOG: "false"
TRAEFIK_ACCESSLOG_FORMAT: "json"
TRAEFIK_METRICS_PROMETHEUS: "true"
TRAEFIK_METRICS_PROMETHEUS_ADDENTRYPOINTSLABELS: "true"
TRAEFIK_METRICS_PROMETHEUS_ADDSERVICESLABELS: "true"
TRAEFIK_ENTRYPOINTS_METRICS_ADDRESS: ":8082"
TRAEFIK_METRICS_PROMETHEUS_ENTRYPOINT: "metrics"
TRAEFIK_ENTRYPOINTS_HTTP_ADDRESS: ":80"
TRAEFIK_ENTRYPOINTS_HTTP_FORWARDEDHEADERS_INSECURE: "true"
# 6h, for https://github.com/traefik/traefik/issues/10805 large file uploads
TRAEFIK_ENTRYPOINTS_HTTP_TRANSPORT_RESPONDINGTIMEOUTS_READTIMEOUT: "21600s"
# 6h, for https://github.com/traefik/traefik/issues/10805 large file downloads
TRAEFIK_ENTRYPOINTS_HTTP_TRANSPORT_RESPONDINGTIMEOUTS_WRITETIMEOUT: "21600s"
TRAEFIK_ENTRYPOINTS_SIMCORE_API_ADDRESS: ":10081"
TRAEFIK_ENTRYPOINTS_SIMCORE_API_FORWARDEDHEADERS_INSECURE: "true"
TRAEFIK_ENTRYPOINTS_SIMCORE_API_TRANSPORT_RESPONDINGTIMEOUTS_READTIMEOUT: "21600s"
TRAEFIK_ENTRYPOINTS_SIMCORE_API_TRANSPORT_RESPONDINGTIMEOUTS_WRITETIMEOUT: "21600s"
TRAEFIK_ENTRYPOINTS_TRAEFIK_MONITOR_ADDRESS: ":8080"
TRAEFIK_ENTRYPOINTS_TRAEFIK_MONITOR_FORWARDEDHEADERS_INSECURE: "true"
TRAEFIK_PROVIDERS_SWARM_ENDPOINT: "unix:///var/run/docker.sock"
TRAEFIK_PROVIDERS_SWARM_NETWORK: "${SWARM_STACK_NAME}_default"
TRAEFIK_PROVIDERS_SWARM_REFRESHSECONDS: "1" # https://github.com/traefik/traefik/issues/7886
TRAEFIK_PROVIDERS_SWARM_EXPOSEDBYDEFAULT: "false"
TRAEFIK_PROVIDERS_SWARM_CONSTRAINTS: "Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
TRAEFIK_TRACING: "true"
TRAEFIK_TRACING_ADDINTERNALS: "true"
TRAEFIK_TRACING_OTLP: "true"
TRAEFIK_TRACING_OTLP_HTTP: "true"
TRAEFIK_TRACING_SAMPLERATE: "${TRACING_OPENTELEMETRY_SAMPLING_PROBABILITY}"
healthcheck:
# NOTE: this healthcheck to check if traefik is up and running must be run on the ping entrypoint defined in command!
test: traefik healthcheck --ping --ping.entryPoint=ping --entryPoints.ping.address=:9082
Expand Down
Loading