From 3229c2a1c3c3f305eae0ea7850147d90bfe6ebd5 Mon Sep 17 00:00:00 2001 From: lunanting Date: Sat, 12 Sep 2026 16:55:48 +0800 Subject: [PATCH] fix: use backend liveness health check --- deploy/production/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/production/docker-compose.yml b/deploy/production/docker-compose.yml index c324e03..2377f18 100644 --- a/deploy/production/docker-compose.yml +++ b/deploy/production/docker-compose.yml @@ -41,7 +41,7 @@ services: mysql: condition: service_healthy healthcheck: - test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:4090/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"] + test: ["CMD", "node", "-e", "const s=require('node:net').connect(4090,'127.0.0.1',()=>{s.end();process.exit(0)});s.setTimeout(3000,()=>process.exit(1));s.on('error',()=>process.exit(1))"] interval: 10s timeout: 5s retries: 18