From 059c002be43256b1c48bd57c5efbeb1915a10132 Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 13 Aug 2026 14:26:20 +0200 Subject: [PATCH] ovis: Probe the running services in the healthchecks test -d on a node_modules directory was true even with Apollo dead, so the frontend's service_healthy condition gated on nothing. --- ccp/modules/ovis-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccp/modules/ovis-compose.yml b/ccp/modules/ovis-compose.yml index 165f236..e34e094 100644 --- a/ccp/modules/ovis-compose.yml +++ b/ccp/modules/ovis-compose.yml @@ -51,7 +51,7 @@ services: depends_on: - ovis-backend-database-mongodb healthcheck: - test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:9000/health', res => process.exit(res.statusCode===200?0:1)).on('error', () => process.exit(1));\""] + test: ["CMD", "curl", "-fsS", "http://localhost:9000/health"] interval: 10s timeout: 5s retries: 6 @@ -77,7 +77,7 @@ services: - ovis-backend-mongodb-data-preprocessing - ovis-backend-data-import healthcheck: - test: ["CMD-SHELL", "test -d /app/node_modules/mongodb"] + test: ["CMD", "curl", "-fsS", "-X", "POST", "-H", "content-type: application/json", "-d", "{\"query\":\"{__typename}\"}", "http://localhost:4001/graphql"] interval: 10s timeout: 5s retries: 5