From 60cc0be10b5c41a5f66675314854eaf0f920dc19 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:17:43 +0100 Subject: [PATCH] fix(docker): use node-based healthchecks for mana-core-auth and nutriphi-web - mana-core-auth container has no wget/curl, only node - nutriphi-web had IPv6/IPv4 resolution issues with wget - Both now use native Node.js http module for healthchecks Co-Authored-By: Claude Opus 4.5 --- docker-compose.macmini.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.macmini.yml b/docker-compose.macmini.yml index 5f41111b9..7b10f4cac 100644 --- a/docker-compose.macmini.yml +++ b/docker-compose.macmini.yml @@ -97,7 +97,7 @@ services: ports: - "3001:3001" healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3001/health"] + test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:3001/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"] interval: 30s timeout: 10s retries: 3 @@ -131,6 +131,7 @@ services: SEARCH_SERVICE_URL: http://mana-search:3021 STT_SERVICE_URL: http://mana-stt:3020 TTS_SERVICE_URL: http://mana-tts:3022 + IMAGE_GEN_SERVICE_URL: http://host.docker.internal:3025 CORS_ORIGINS: https://api.mana.how,https://mana.how ports: - "3030:3030" @@ -674,7 +675,7 @@ services: ports: - "5189:5189" healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5189/health"] + test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:5189/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"] interval: 30s timeout: 10s retries: 3