Add healthcheck for minio

This commit is contained in:
2025-07-16 22:35:04 +05:30
parent a495061034
commit 5765d57aa1

View File

@@ -25,6 +25,11 @@ services:
# Network ports
ports:
- ${API_PORT}:9000 # MinIO API port
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
# MinIO Console Service (separate from main server)
minio-console:
@@ -33,6 +38,11 @@ services:
image: ghcr.io/georgmangold/console:v1.8.1 # Community console UI
restart: unless-stopped # Auto-restart on failure
# Service dependencies
depends_on:
minio:
condition: service_healthy
# Environment configuration
environment:
- CONSOLE_MINIO_SERVER=http://minio:9000 # Points to MinIO server