From 15e6581e7239378a5cb9a59db749e01ef68d1c44 Mon Sep 17 00:00:00 2001 From: Gandalf Date: Sun, 4 Jan 2026 02:02:56 +0100 Subject: [PATCH] Disable health checks for Swarm overlay compatibility Health checks using localhost fail in Docker Swarm overlay network due to network namespace isolation - wget to localhost:3000 returns "Connection refused" even though the app binds to 0.0.0.0:3000. Disabling health checks temporarily until a compatible approach is identified (e.g., using container IP or service discovery). --- docker/docker-compose.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 1713c2b2a..7aa01c24a 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -16,12 +16,10 @@ services: failure_action: rollback rollback_config: order: start-first + # Health check disabled: localhost resolution fails in Swarm overlay network + # TODO: Find alternative approach (container IP or service mesh) healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s + disable: true denser-wallet: image: registry.gitlab.syncad.com/hive/denser/wallet:${VERSION:?VERSION required} @@ -40,9 +38,7 @@ services: failure_action: rollback rollback_config: order: start-first + # Health check disabled: localhost resolution fails in Swarm overlay network + # TODO: Find alternative approach (container IP or service mesh) healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s + disable: true -- GitLab