New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker: Create bucket and set global policy #5184
Comments
https://gist.github.com/harshavardhana/cb6c0d4d220a9334a66d6259c7d54c95 take look how it can be achieved here.. @tillkruss |
@harshavardhana: Thanks! So I would just run this? entrypoint: >
/bin/sh -c "
/usr/bin/mc mb acme;
/usr/bin/mc policy public acme;
" |
You need to configure |
I'm a little confused of trying to run You'll end up getting the output I know you could potentially alias to only need to run EDIT: I realized that the link https://gist.github.com/harshavardhana/cb6c0d4d220a9334a66d6259c7d54c95 in fact does use the |
You can alternatively download the mc as well. |
Also I don't think its heavy, its an alpine Linux container which is 5MiB compressed. |
I thought the container remained running but since it only stays online as long as it's needed makes me feel better about it :) |
Closing this as answered feel free to open new issues if you have further questions @tillkruss |
No, thanks. I got it working. I ended up installing mc inside my workspace container and execute the commands manually. Having an entire container just for mc seemed unessesary. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm not sure if this is the right place to ask questions, I'm sorry if it isn't.
I would like to create a bucket and set a global policy (for all future uploaded files) when the Minio docker container is build. Is that possible?
This is my Minio setup in my
docker-compose.yml
:The text was updated successfully, but these errors were encountered: