version: "3" services: minio: image: quay.io/minio/minio container_name: minio hostname: minio command: server --address 0.0.0.0:10000 --console-address 0.0.0.0:10001 /data ports: - '127.0.0.1:10000:10000' - '127.0.0.1:10001:10001' environment: - MINIO_ROOT_USER=minioadmin - MINIO_ROOT_PASSWORD=minioadminpassword createbuckets: image: minio/mc depends_on: - minio entrypoint: > /bin/sh -c " /usr/bin/mc alias set myminio http://minio:10000 minioadmin minioadminpassword; /usr/bin/mc admin info myminio; /usr/bin/mc mb myminio/mybucket; /usr/bin/mc policy set public myminio/mybucket; exit 0; "