From be7c37b3b06dbce0eaa3935d1d60aecf64afaece Mon Sep 17 00:00:00 2001 From: johnhkchen Date: Wed, 22 Oct 2025 14:17:21 -0700 Subject: [PATCH] Enable MinIO S3 storage with internal Docker network endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Uncomment S3 storage configuration (lines 58-66) - Set S3 endpoint to http://minio:9000 (internal Docker network) - Configure S3 force path style for MinIO compatibility This replaces the external endpoint (https://s3.b28.dev) with direct container communication, avoiding Cloudflare Tunnel latency and SSL/redirect issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docker-compose.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6bc183d..6a9f464 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -55,15 +55,15 @@ services: CORS_ENABLED: "true" CORS_ORIGIN: "true" - # Storage - MinIO S3 (temporarily disabled - networking issue) - # STORAGE_LOCATIONS: "s3" - # STORAGE_S3_DRIVER: "s3" - # STORAGE_S3_KEY: ${MINIO_ACCESS_KEY} - # STORAGE_S3_SECRET: ${MINIO_SECRET_KEY} - # STORAGE_S3_BUCKET: "directus-uploads" - # STORAGE_S3_REGION: "us-east-1" - # STORAGE_S3_ENDPOINT: "http://s3.b28.dev" - # STORAGE_S3_FORCE_PATH_STYLE: "true" + # Storage - MinIO S3 (internal Docker network connection) + STORAGE_LOCATIONS: "s3" + STORAGE_S3_DRIVER: "s3" + STORAGE_S3_KEY: ${MINIO_ACCESS_KEY} + STORAGE_S3_SECRET: ${MINIO_SECRET_KEY} + STORAGE_S3_BUCKET: "directus-uploads" + STORAGE_S3_REGION: "us-east-1" + STORAGE_S3_ENDPOINT: "http://minio:9000" + STORAGE_S3_FORCE_PATH_STYLE: "true" volumes: - directus_uploads:/directus/uploads # Back to local storage temporarily