Refactor healthcheck commands in docker-compose.yml for langfuse-worker and langfuse services to use Node.js for improved reliability

This commit is contained in:
2025-12-21 00:44:19 +00:00
parent d87fa14c1e
commit 30acac0f76

View File

@@ -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
external: true