From ec2d99446f0729ef54477b6989f9291a1f4a55fb Mon Sep 17 00:00:00 2001 From: Tudor Date: Tue, 24 Mar 2026 15:07:24 +0000 Subject: [PATCH] fix(kestra): use management health endpoint for healthcheck Port 8081 /health responds as soon as Kestra is up; the flows/search API on 8080 can be slow or return errors during startup. Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index ee5ad58..7002001 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -104,7 +104,7 @@ services: - schoolcompare-network restart: unless-stopped healthcheck: - test: ["CMD-SHELL", "curl -sf http://localhost:8080/api/v1/flows/search || exit 1"] + test: ["CMD-SHELL", "curl -sf http://localhost:8081/health | grep -q '\"status\":\"UP\"'"] interval: 15s timeout: 10s retries: 10