Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Use healthcheck command preferred by MinIO (#5170)

Dhruv Bhanushali392219c367c0
diff --git a/catalog/compose.yml b/catalog/compose.yml
index ef4892e85..224d3ff79 100644
--- a/catalog/compose.yml
+++ b/catalog/compose.yml
@@ -80,10 +80,7 @@ services:
- ../docker/minio/s3_entrypoint.sh:/opt/minio/s3_entrypoint.sh:ro,z
entrypoint: /opt/minio/s3_entrypoint.sh
healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:5010/minio/health/live"]
- interval: 30s
- timeout: 20s
- retries: 3
+ test: "mc ready local"
load_to_s3:
profiles:
diff --git a/docker/minio/env.template b/docker/minio/env.template
index 178889c38..1390cadbe 100644
--- a/docker/minio/env.template
+++ b/docker/minio/env.template
@@ -4,5 +4,8 @@ MINIO_ROOT_USER=test_key
# AWS secret key
MINIO_ROOT_PASSWORD=test_secret
+# MinIO Client `mc` configuration
+MC_HOST_local=http://test_key:test_secret@localhost:5000
+
# Comma separated list of buckets to create on startup
BUCKETS_TO_CREATE=openverse-catalog,openverse-airflow-logs,inaturalist-open-data