Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nazo
Last active August 24, 2021 12:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazo/e6390916ffddbef7ec5daecf3cecf4d2 to your computer and use it in GitHub Desktop.
Save nazo/e6390916ffddbef7ec5daecf3cecf4d2 to your computer and use it in GitHub Desktop.
minio docker docker-compose.yml
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