diff --git a/services/traefik/docker-compose.aws.yml b/services/traefik/docker-compose.aws.yml index f5843bd7..7a2dd5b8 100644 --- a/services/traefik/docker-compose.aws.yml +++ b/services/traefik/docker-compose.aws.yml @@ -3,6 +3,9 @@ services: traefik: command: - "--api=true" + - "--ping=true" + - "--entryPoints.ping.address=:9082" + - "--ping.entryPoint=ping" - "--api.dashboard=true" - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=false" @@ -15,11 +18,9 @@ services: - "--entrypoints.http.http.redirections.entrypoint.to=https" - "--entrypoints.http.http.redirections.entrypoint.scheme=https" - "--entrypoints.http.http.redirections.entrypoint.permanent=true" - - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.address=:443" - - "--entryPoints.https.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.smtp.address=:25" diff --git a/services/traefik/docker-compose.dalco.yml b/services/traefik/docker-compose.dalco.yml index 7d7f898a..b1a5e159 100644 --- a/services/traefik/docker-compose.dalco.yml +++ b/services/traefik/docker-compose.dalco.yml @@ -3,6 +3,9 @@ services: traefik: command: - "--api=true" + - "--ping=true" + - "--entryPoints.ping.address=:9082" + - "--ping.entryPoint=ping" - "--api.dashboard=true" - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=false" @@ -15,11 +18,9 @@ services: - "--entrypoints.http.http.redirections.entrypoint.to=https" - "--entrypoints.http.http.redirections.entrypoint.scheme=https" - "--entrypoints.http.http.redirections.entrypoint.permanent=true" - - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.address=:443" - - "--entryPoints.https.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.smtp.address=:25" diff --git a/services/traefik/docker-compose.letsencrypt.http.yml b/services/traefik/docker-compose.letsencrypt.http.yml index b580a1f9..9d98779e 100644 --- a/services/traefik/docker-compose.letsencrypt.http.yml +++ b/services/traefik/docker-compose.letsencrypt.http.yml @@ -3,6 +3,9 @@ services: traefik: command: - "--api=true" + - "--ping=true" + - "--entryPoints.ping.address=:9082" + - "--ping.entryPoint=ping" - "--api.dashboard=true" - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=false" diff --git a/services/traefik/docker-compose.local.yml b/services/traefik/docker-compose.local.yml index 3bc0da69..cc157037 100644 --- a/services/traefik/docker-compose.local.yml +++ b/services/traefik/docker-compose.local.yml @@ -8,6 +8,9 @@ services: - "/bin/sh" - "/customEntrypoint.sh" - "--api=true" + - "--ping=true" + - "--entryPoints.ping.address=:9082" + - "--ping.entryPoint=ping" - "--api.dashboard=true" - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=true" @@ -25,11 +28,9 @@ services: - "--metrics.prometheus.entryPoint=metrics" - "--entryPoints.smtp.address=:25" - "--entryPoints.http.address=:80" - - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.address=:443" - - "--entryPoints.https.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.postgres.address=:5432" diff --git a/services/traefik/docker-compose.master.yml b/services/traefik/docker-compose.master.yml index f47f5e7b..14d5af8a 100644 --- a/services/traefik/docker-compose.master.yml +++ b/services/traefik/docker-compose.master.yml @@ -3,6 +3,9 @@ services: traefik: command: - "--api=true" + - "--ping=true" + - "--entryPoints.ping.address=:9082" + - "--ping.entryPoint=ping" - "--api.dashboard=true" - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=false" @@ -15,11 +18,9 @@ services: - "--entrypoints.http.http.redirections.entrypoint.to=https" - "--entrypoints.http.http.redirections.entrypoint.scheme=https" - "--entrypoints.http.http.redirections.entrypoint.permanent=true" - - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.address=:443" - - "--entryPoints.https.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.postgres.address=:5432" diff --git a/services/traefik/docker-compose.public.yml b/services/traefik/docker-compose.public.yml index c5cc7f05..adb3df3f 100644 --- a/services/traefik/docker-compose.public.yml +++ b/services/traefik/docker-compose.public.yml @@ -4,6 +4,9 @@ services: dns: 8.8.8.8 # This is critical to make the ACME challange work command: - "--api=true" + - "--ping=true" + - "--entryPoints.ping.address=:9082" + - "--ping.entryPoint=ping" - "--api.dashboard=true" - "--log.level=${OPS_TRAEFIK_LOGLEVEL}" - "--accesslog=false" @@ -17,11 +20,9 @@ services: - "--entrypoints.http.http.redirections.entrypoint.to=https" - "--entrypoints.http.http.redirections.entrypoint.scheme=https" - "--entrypoints.http.http.redirections.entrypoint.permanent=true" - - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.address=:443" - - "--entryPoints.https.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.smtp.address=:25" diff --git a/services/traefik/docker-compose.yml.j2 b/services/traefik/docker-compose.yml.j2 index 372b777e..2a606e5a 100644 --- a/services/traefik/docker-compose.yml.j2 +++ b/services/traefik/docker-compose.yml.j2 @@ -6,6 +6,9 @@ services: init: true command: - "--api=true" + - "--ping=true" + - "--entryPoints.ping.address=:9082" + - "--ping.entryPoint=ping" - "--api.dashboard=true" - "--accesslog=true" - "--accesslog.format=json" @@ -22,7 +25,6 @@ services: - "--entryPoints.metrics.address=:8082" - "--metrics.prometheus.entryPoint=metrics" - "--entryPoints.http.address=:80" - - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entrypoints.http.http.redirections.entrypoint.to=https" @@ -31,7 +33,6 @@ services: - '--entryPoints.postgres.address=:5432' - '--entryPoints.postgres2.address=:5433' - "--entryPoints.https.address=:443" - - "--entryPoints.https.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.https.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--providers.swarm.endpoint=unix:///var/run/docker.sock" @@ -43,6 +44,14 @@ services: - "--tracing.addinternals" - "--tracing.otlp=true" - "--tracing.otlp.http=true" + 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 + interval: 10s + timeout: 5s + retries: 5 + start_period: 10s + start_interval: 1s ports: - target: 80 published: 80