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 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-01-29 22:17:43 +01:00
parent 0023394074
commit 60cc0be10b

View file

@ -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