Skip to content

Instantly share code, notes, and snippets.

@nazo

nazo/docker-compose.yml

Last active May 14, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.