Add healthcheck for minio
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user