mirror of
https://github.com/Toumash/mlflow-docker
synced 2025-11-04 15:19:21 +01:00
bugfix: create bucket using variable name instead of hardcoded one closes #19
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
version: "3.9"
|
version: "3.9"
|
||||||
services:
|
services:
|
||||||
s3:
|
s3:
|
||||||
image: minio/minio:RELEASE.2021-11-24T23-19-33Z
|
image: minio/minio:RELEASE.2021-11-24T23-19-33Z
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000"
|
- "9000:9000"
|
||||||
@@ -52,10 +52,12 @@ services:
|
|||||||
image: minio/mc
|
image: minio/mc
|
||||||
depends_on:
|
depends_on:
|
||||||
- "s3"
|
- "s3"
|
||||||
|
environment:
|
||||||
|
- MLFLOW_S3_ENDPOINT_URL=http://s3:9000
|
||||||
entrypoint: >
|
entrypoint: >
|
||||||
/bin/sh -c "
|
/bin/sh -c "
|
||||||
until (/usr/bin/mc alias set minio http://s3:9000 '${AWS_ACCESS_KEY_ID}' '${AWS_SECRET_ACCESS_KEY}') do echo '...waiting...' && sleep 1; done;
|
until (/usr/bin/mc alias set minio ${MLFLOW_S3_ENDPOINT_URL} '${AWS_ACCESS_KEY_ID}' '${AWS_SECRET_ACCESS_KEY}') do echo '...waiting...' && sleep 1; done;
|
||||||
/usr/bin/mc mb minio/mlflow;
|
/usr/bin/mc mb minio/${AWS_BUCKET_NAME};
|
||||||
exit 0;
|
exit 0;
|
||||||
"
|
"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user