fix: update minio docker healthcheck (#49858)

Current health check doesn't work.

Assisted by Codex.

https://github.com/minio/minio/issues/18389

Signed-off-by: Letu Ren <letur@nvidia.com>
This commit is contained in:
Letu Ren
2026-05-27 20:21:01 +08:00
committed by GitHub
parent c3207d5963
commit 65b647b743
6 changed files with 8 additions and 8 deletions
@@ -13,7 +13,7 @@
- minio_volume:/data
command: minio server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
test: ["CMD", "mc", "ready", "local"]
interval: 30s
timeout: 20s
retries: 3
@@ -45,7 +45,7 @@ services:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
command: minio server /minio_data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
test: ["CMD", "mc", "ready", "local"]
interval: 30s
timeout: 20s
retries: 3
+3 -3
View File
@@ -52,9 +52,9 @@ services:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:9000/minio/health/live"
"mc",
"ready",
"local"
]
interval: 30s
timeout: 20s
@@ -31,7 +31,7 @@ services:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
command: minio server /minio_data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
test: ["CMD", "mc", "ready", "local"]
interval: 30s
timeout: 20s
retries: 3
@@ -31,7 +31,7 @@ services:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
command: minio server /minio_data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
test: ["CMD", "mc", "ready", "local"]
interval: 30s
timeout: 20s
retries: 3
+1 -1
View File
@@ -127,7 +127,7 @@ services:
MINIO_SECRET_KEY: minioadmin
command: minio server /minio_data
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live' ]
test: [ 'CMD', 'mc', 'ready', 'local' ]
interval: 30s
timeout: 20s
retries: 3