Add healthcheck for minio
This commit is contained in:
@@ -25,6 +25,11 @@ services:
|
|||||||
# Network ports
|
# Network ports
|
||||||
ports:
|
ports:
|
||||||
- ${API_PORT}:9000 # MinIO API port
|
- ${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 Service (separate from main server)
|
||||||
minio-console:
|
minio-console:
|
||||||
@@ -33,6 +38,11 @@ services:
|
|||||||
image: ghcr.io/georgmangold/console:v1.8.1 # Community console UI
|
image: ghcr.io/georgmangold/console:v1.8.1 # Community console UI
|
||||||
restart: unless-stopped # Auto-restart on failure
|
restart: unless-stopped # Auto-restart on failure
|
||||||
|
|
||||||
|
# Service dependencies
|
||||||
|
depends_on:
|
||||||
|
minio:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
# Environment configuration
|
# Environment configuration
|
||||||
environment:
|
environment:
|
||||||
- CONSOLE_MINIO_SERVER=http://minio:9000 # Points to MinIO server
|
- CONSOLE_MINIO_SERVER=http://minio:9000 # Points to MinIO server
|
||||||
|
Reference in New Issue
Block a user