Enable MinIO S3 storage with internal Docker network endpoint

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 <noreply@anthropic.com>
This commit is contained in:
2025-10-22 14:17:21 -07:00
parent e08300cf13
commit be7c37b3b0

View File

@@ -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