From 55bf77ca0e66028d41b75055dda406fb4559992f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 15 May 2026 22:15:47 +0400 Subject: [PATCH] deploy: use node for healthcheck --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 10bb69d..b2c0a6d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: env_file: .env restart: unless-stopped healthcheck: - test: ["CMD", "wget", "-qO-", "http://localhost:4000"] + test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:4000',r=>process.exit(r.statusCode<400?0:1)).on('error',()=>process.exit(1))\""] interval: 10s timeout: 5s retries: 12