From b025ed2256329497728b9bb09c91c4cadc4047a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 15 May 2026 22:15:35 +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 a247cd0..0d60ec6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: - ./extensions:/directus/extensions env_file: ".env" healthcheck: - test: ["CMD", "wget", "-qO-", "http://localhost:8055/server/health"] + test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:8055/server/health',r=>process.exit(r.statusCode<400?0:1)).on('error',()=>process.exit(1))\""] interval: 10s timeout: 5s retries: 12