ci(deploy): fix minio healthcheck for newer image (curl + mc fallback)
CI/CD / CI · Web (tsc) (push) Successful in 1m10s
CI/CD / Deploy · full stack (push) Failing after 19s

Server's mirror minio:latest is newer than dev's cached RELEASE.2025-09-07 and
dropped the bundled mc client, so 'mc ready local' failed → fr2-minio unhealthy →
up aborted. Switch to MinIO's curl liveness endpoint with an mc fallback so it
works across image versions; bump start_period 10s→20s, retries 5→8.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-12 17:09:00 +03:30
parent b34904549f
commit 21a203b012
+5 -3
View File
@@ -53,11 +53,13 @@ services:
- "${EDGE_BIND:-0.0.0.0}:${MINIO_PORT:-9000}:9000"
- "${EDGE_BIND:-0.0.0.0}:${MINIO_CONSOLE_PORT:-9001}:9001"
healthcheck:
test: ["CMD-SHELL", "mc ready local || exit 1"]
# Liveness via curl (newer images) with an mc fallback (older images that
# still bundle the client). Covers minio:latest drift either way.
test: ["CMD-SHELL", "curl -sf http://localhost:9000/minio/health/live || mc ready local || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
retries: 8
start_period: 20s
# ── Identity Service (.NET 10) ──────────────────────────────────────────────
# Config keys: ConnectionStrings:DefaultConnection Jwt:Secret