Skip to content

Commit 873fe78

Browse files
✨Add docker healthcheck of Simcore Traefik container (#7820)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent bb3e85c commit 873fe78

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

services/docker-compose.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,10 +1385,12 @@ services:
13851385
- "--metrics.prometheus.entryPoint=metrics"
13861386
- "--entryPoints.http.address=:80"
13871387
- "--entryPoints.http.forwardedHeaders.insecure"
1388-
- "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.simcore_api.address=:10081"
1388+
- "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file uploads
1389+
- "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file downloads
13891390
- "--entryPoints.simcore_api.address=:10081"
13901391
- "--entryPoints.simcore_api.forwardedHeaders.insecure"
1391-
- "--entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805
1392+
- "--entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file uploads
1393+
- "--entryPoints.simcore_api.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file downloads
13921394
- "--entryPoints.traefik_monitor.address=:8080"
13931395
- "--entryPoints.traefik_monitor.forwardedHeaders.insecure"
13941396
- "--providers.swarm.endpoint=unix:///var/run/docker.sock"
@@ -1401,6 +1403,14 @@ services:
14011403
- "--tracing.addinternals"
14021404
- "--tracing.otlp=true"
14031405
- "--tracing.otlp.http=true"
1406+
healthcheck:
1407+
# NOTE: this healthcheck to check if traefik is up and running must be run on the ping entrypoint defined in command!
1408+
test: traefik healthcheck --ping --ping.entryPoint=ping --entryPoints.ping.address=:9082
1409+
interval: 10s
1410+
timeout: 5s
1411+
retries: 5
1412+
start_period: 10s
1413+
start_interval: 1s
14041414
volumes:
14051415
# So that Traefik can listen to the Docker events
14061416
- /var/run/docker.sock:/var/run/docker.sock

0 commit comments

Comments
 (0)