fix: healthcheck uses 127.0.0.1 instead of localhost to avoid IPv6 resolution issue

This commit is contained in:
Vectry
2026-02-10 01:36:42 +00:00
parent 3163deb0c9
commit e0f13cdaa6

View File

@@ -17,7 +17,7 @@ services:
migrate: migrate:
condition: service_completed_successfully condition: service_completed_successfully
healthcheck: healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://localhost:3000/api/health"] test: ["CMD", "wget", "--spider", "--quiet", "http://127.0.0.1:3000/api/health"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3