Last active
August 24, 2021 12:53
-
-
Save nazo/e6390916ffddbef7ec5daecf3cecf4d2 to your computer and use it in GitHub Desktop.
minio docker docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
minio: | |
image: minio/minio | |
ports: | |
- 10001:9000 | |
volumes: | |
- ./tmp/docker/minio/data:/export | |
environment: | |
MINIO_ACCESS_KEY: minio | |
MINIO_SECRET_KEY: miniominio | |
command: server /export | |
createbuckets: | |
image: minio/mc | |
depends_on: | |
- minio | |
entrypoint: > | |
/bin/sh -c " | |
until /usr/bin/mc config host add myminio http://minio:9000 minio miniominio; do sleep 1; done; | |
/usr/bin/mc rm -r --force myminio/mybucketname; | |
/usr/bin/mc mb myminio/mybucketname; | |
/usr/bin/mc policy set download myminio/mybucketname; | |
exit 0; | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment