From f3b777d8e81b9b1940a1a1e217e2d9294e8529c1 Mon Sep 17 00:00:00 2001 From: Syed Qarib Date: Sun, 3 Aug 2025 22:12:47 +0200 Subject: [PATCH 1/2] Use wget since n8n image goes not have curl --- docker-compose.n8n.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.n8n.yml b/docker-compose.n8n.yml index dae0a00..3383313 100644 --- a/docker-compose.n8n.yml +++ b/docker-compose.n8n.yml @@ -22,7 +22,7 @@ services: networks: - n8n-network healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:5678/healthz"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5678/healthz"] interval: 30s timeout: 10s retries: 3 From 9003c248083e741f139bd3531e445057db2a276f Mon Sep 17 00:00:00 2001 From: Syed Qarib Date: Tue, 5 Aug 2025 17:23:18 +0200 Subject: [PATCH 2/2] update wget health check based on pr comments --- docker-compose.n8n.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.n8n.yml b/docker-compose.n8n.yml index 3383313..babffab 100644 --- a/docker-compose.n8n.yml +++ b/docker-compose.n8n.yml @@ -22,7 +22,7 @@ services: networks: - n8n-network healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5678/healthz"] + test: ["CMD", "sh", "-c", "wget --quiet --spider --tries=1 --timeout=10 http://localhost:5678/healthz || exit 1"] interval: 30s timeout: 10s retries: 3