fix(compose): umami healthcheck via 127.0.0.1 — localhost resolves to ::1 and umami listens on IPv4 only

This commit is contained in:
MMD
2026-09-19 01:24:15 +03:30
parent 74770cd99d
commit 851e3fc2dc
+2 -1
View File
@@ -306,7 +306,8 @@ services:
db-init:
condition: service_completed_successfully
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://localhost:3000/api/heartbeat || exit 1"]
# 127.0.0.1 نه localhost — «localhost» به ::1 حل می‌شود و umami فقط IPv4 گوش می‌دهد
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:3000/api/heartbeat || exit 1"]
interval: 30s
timeout: 5s
retries: 5