ci(deploy): fix minio healthcheck for newer image (curl + mc fallback)
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:
@@ -53,11 +53,13 @@ services:
|
|||||||
- "${EDGE_BIND:-0.0.0.0}:${MINIO_PORT:-9000}:9000"
|
- "${EDGE_BIND:-0.0.0.0}:${MINIO_PORT:-9000}:9000"
|
||||||
- "${EDGE_BIND:-0.0.0.0}:${MINIO_CONSOLE_PORT:-9001}:9001"
|
- "${EDGE_BIND:-0.0.0.0}:${MINIO_CONSOLE_PORT:-9001}:9001"
|
||||||
healthcheck:
|
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
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 8
|
||||||
start_period: 10s
|
start_period: 20s
|
||||||
|
|
||||||
# ── Identity Service (.NET 10) ──────────────────────────────────────────────
|
# ── Identity Service (.NET 10) ──────────────────────────────────────────────
|
||||||
# Config keys: ConnectionStrings:DefaultConnection Jwt:Secret
|
# Config keys: ConnectionStrings:DefaultConnection Jwt:Secret
|
||||||
|
|||||||
Reference in New Issue
Block a user