Update docker-compose.yml to configure MinIO environment variables for improved security
- Added environment variables for MINIO_ROOT_USER and MINIO_ROOT_PASSWORD to docker-compose.yml. - Updated mc alias command to use the new environment variable references for better clarity and security.
This commit is contained in:
parent
d62d388141
commit
26d6a82fc0
@ -36,9 +36,12 @@ services:
|
||||
depends_on:
|
||||
minio:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
|
||||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
mc alias set local http://minio:9000 $${MINIO_ROOT_USER:-minioadmin} $${MINIO_ROOT_PASSWORD:-minioadmin};
|
||||
mc alias set local http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD};
|
||||
mc mb --ignore-existing local/advdoors-media;
|
||||
mc anonymous set download local/advdoors-media;
|
||||
exit 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user