From 5fc424408eb32122d62b3dd8799643c1181e69ea Mon Sep 17 00:00:00 2001 From: echo Date: Tue, 24 Feb 2026 16:49:17 +0100 Subject: [PATCH] fix: correct health check endpoints and use IPv4 addresses --- docker-compose.coolify.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.yml index 2ea569f..ffe7f97 100644 --- a/docker-compose.coolify.yml +++ b/docker-compose.coolify.yml @@ -83,7 +83,7 @@ services: postgres-backend: condition: service_healthy healthcheck: - test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/'] + test: ['CMD', 'node', '-e', "require('http').get('http://127.0.0.1:3000/api/v1/health', (r) => {if(r.statusCode !== 200) process.exit(1)})"] interval: 30s timeout: 10s retries: 3 @@ -152,7 +152,7 @@ services: depends_on: - backend healthcheck: - test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:80/'] + test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/'] interval: 30s timeout: 10s retries: 3 @@ -177,7 +177,7 @@ services: depends_on: - backend healthcheck: - test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:80/'] + test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/'] interval: 30s timeout: 10s retries: 3