Add CORS configuration for MinIO buckets and update environment variables
All checks were successful
Deploy MinIO Production / deploy (push) Successful in 42s

This commit is contained in:
Frank John Begornia
2026-01-06 15:43:10 +08:00
parent 92b4a5f027
commit 7af068fb6d
3 changed files with 126 additions and 4 deletions

View File

@@ -10,6 +10,8 @@ services:
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin123}
MINIO_SERVER_URL: ${MINIO_SERVER_URL:-http://localhost:9000}
MINIO_BROWSER_REDIRECT_URL: ${MINIO_BROWSER_REDIRECT_URL:-http://localhost:9001}
# CORS configuration - allow localhost for local development
MINIO_API_CORS_ALLOW_ORIGIN: "http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:3000"
command: server /data --console-address ":9001"
ports:
- "${MINIO_PORT:-9000}:9000"