mimischi / minio-dokku Goto Github PK
View Code? Open in Web Editor NEWDockerfile to run Minio (S3 compatible storage) on Dokku (mini-Heroku)
Dockerfile to run Minio (S3 compatible storage) on Dokku (mini-Heroku)
Hi. Thanks for writing this plugin. I would like to point out a few additional settings that users might want to add in case they run into the following minio issue. The solution is to set the following configuration on nginx for your minio app: ignore_invalid_headers off;
. Also in case one would like to increase the max file upload size (to 50mb for example) the following nginx configuration is needed: client_max_body_size 50m;
. The way to add those settings to your app is specified in the dokku docs here.
We just set up a minio instance using this dockerfile on our server. As stated in your documentation, we had to give write permission to everyone on the host system for the mounted storage volume.
This is a potential security issue as only dokku should be able to read/write files from this directory. We is this necessary?
Have been considering using this repo, but realised that it might be better off as a plugin. What are your thoughts?
When I push it to dokku, it showed up " minio: Please run ‘minio’ as a non-root user."
Step 2/10 : RUN adduser -D -u 32769 -g dokku dokku
---> Running in d302ff953ce1
adduser: group 'dokku' does not exist
remote: The command '/bin/sh -c adduser -D -u 32769 -g dokku dokku' returned a non-zero code: 6
remote: 2021/02/21 18:39:00 exit status 6
I managed to get past this step by changing the line in step 2 to RUN adduser -u 32769 -m -U dokku
but I'm not sure if this is going to break something else down the line. Any ideas?
In case someone runs into the issue that their minio build is failing, you also need the storage to be mounted while build. Per default dokku storage:mount
only works for deploy and run.
Mounting it while building needs to be done per docker-options:
dokku docker-options:add minio build "-v /var/lib/dokku/data/storage/minio:/home/dokku/data"
If nobody disagrees here, i woul'd add this to the Readme later.
Recently I set up another dokku environment running MinIO, using this plugin.
Since MinIo released a new version - see https://github.com/minio/minio/releases/tag/RELEASE.2021-07-08T01-15-01Z - which replaces the "old" webUI with the MinIO console project, this repository / dokku prepared image does not work anymore.
Embedded MinIO Browser removed replaced with MinIO Console project https://github.com/minio/console, this is a breaking change
As a workaround I'm using an older version of MinIO until such fix is provided in the repo.
I'm setting this up for the first time, so correct me if I'm wrong. The policy and minio config isn't persisted when using the setup in the readme, is it?
In minio's own Docker docs they map ~/.minio as a docker volume.
So maybe something like this should be added to the readme:
dokku storage:mount minio /var/lib/dokku/data/storage/minio/data:/home/dokku/data
dokku storage:mount minio /var/lib/dokku/data/storage/minio/config:/home/dokku/.minio
How would I get this to work with dokku letsencrypt
. My hunch is it fails because it's on port 9000?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.