From 30acac0f764434b5bf457fc6b06d570c3af36257 Mon Sep 17 00:00:00 2001 From: Travis Vasceannie Date: Sun, 21 Dec 2025 00:44:19 +0000 Subject: [PATCH] Refactor healthcheck commands in docker-compose.yml for langfuse-worker and langfuse services to use Node.js for improved reliability --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 393243b..8849063 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: depends_on: &langfuse-depends-on - clickhouse healthcheck: - test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3030/api/health || exit 1"] + test: ["CMD", "node", "-e", "const http=require('http');const req=http.get('http://localhost:3030/api/health',res=>{process.exit(res.statusCode===200?0:1)});req.on('error',()=>process.exit(1));"] interval: 30s timeout: 10s retries: 3 @@ -79,7 +79,7 @@ services: env_file: - stack.env healthcheck: - test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/api/public/health || exit 1"] + test: ["CMD", "node", "-e", "const http=require('http');const req=http.get('http://localhost:3000/api/public/health',res=>{process.exit(res.statusCode===200?0:1)});req.on('error',()=>process.exit(1));"] interval: 30s timeout: 10s retries: 3 @@ -263,4 +263,4 @@ networks: minio_net: external: true badge-net: - external: true \ No newline at end of file + external: true