fix: minio cors allow all temp config
This commit is contained in:
+2
-4
@@ -25,6 +25,7 @@ services:
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
|
||||
MINIO_API_CORS_ALLOW_ORIGIN: ${MINIO_API_CORS_ALLOW_ORIGIN:-*}
|
||||
volumes:
|
||||
- ./wedding-minio-data:/data
|
||||
labels:
|
||||
@@ -55,8 +56,6 @@ services:
|
||||
S3_BUCKET: ${S3_BUCKET:-wedding-uploads}
|
||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
|
||||
volumes:
|
||||
- ./deployment/minio-cors.xml:/etc/minio/cors.xml:ro
|
||||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
until mc alias set local http://wedding-minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD; do
|
||||
@@ -64,8 +63,7 @@ services:
|
||||
sleep 2;
|
||||
done;
|
||||
mc mb --ignore-existing local/$$S3_BUCKET &&
|
||||
mc anonymous set none local/$$S3_BUCKET &&
|
||||
mc cors set local/$$S3_BUCKET /etc/minio/cors.xml
|
||||
mc anonymous set none local/$$S3_BUCKET
|
||||
"
|
||||
networks:
|
||||
- wedding-private
|
||||
|
||||
Reference in New Issue
Block a user