From 2f7123af2161ce5a0d978e89d570fd8beb01ab8f Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 13 Apr 2026 18:42:55 -0400 Subject: [PATCH] Fix OSRM healthcheck: use curl HTTP check and add start_period /dev/tcp is bash-only and fails in the container's default sh. Switch to a real HTTP check against the OSRM API root, and add a 30s start_period so Docker doesn't fail the check before the road data finishes loading. Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7d39f90..bc23a30 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,10 +9,11 @@ services: - ./docker/osrm/data:/data command: osrm-routed --algorithm mld /data/connecticut-latest.osrm healthcheck: - test: ["CMD-SHELL", "echo > /dev/tcp/localhost/5000"] - interval: 30s + test: ["CMD-SHELL", "curl -sf http://localhost:5000/ || exit 1"] + interval: 15s timeout: 5s - retries: 3 + retries: 5 + start_period: 30s balloons-shop: build: .