Skip to content

Instantly share code, notes, and snippets.

@radupotop
Last active February 23, 2021 20:07
Show Gist options
  • Save radupotop/08106c9563586ce3272eab6d16cdcefa to your computer and use it in GitHub Desktop.
Save radupotop/08106c9563586ce3272eab6d16cdcefa to your computer and use it in GitHub Desktop.
S3 bucket with Minio
# Run with:
# docker-compose run --service-ports bucket server /tmp/
#
# Set credentials:
#
# export AWS_ACCESS_KEY_ID=root
# export AWS_SECRET_ACCESS_KEY=testtest
#
# Create a bucket & put objects:
#
# aws --endpoint-url=http://localhost:9000 s3api create-bucket --bucket demo-bucket --acl public-read
# aws --endpoint-url=http://localhost:9000 s3 sync somefiles/ s3://demo-bucket/somefiles/
# aws --endpoint-url=http://localhost:9000 s3 ls s3://demo-bucket/
#
# A webui is available at:
# http://localhost:9000
#
version: '3.7'
services:
bucket:
image: minio/minio
ports:
- "9000:9000"
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: testtest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment