From 21a203b0126e02109de3248de47c5ab4ac4cba5f Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Fri, 12 Jun 2026 17:09:00 +0330 Subject: [PATCH] ci(deploy): fix minio healthcheck for newer image (curl + mc fallback) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docker-compose.v2.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.v2.yml b/docker-compose.v2.yml index b8e1acd..de53fb9 100644 --- a/docker-compose.v2.yml +++ b/docker-compose.v2.yml @@ -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