Skip to content

Dockerfile to run Minio (S3 compatible storage) on Dokku (mini-Heroku)

Notifications You must be signed in to change notification settings

PythonicCafe/dokku-minio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Minio Version Dokku Version Docker Automated buil

Run Minio on Dokku

What is Minio

Minio is an object storage server, and API compatible with Amazon S3 cloud storage service. Read more at the minio.io website.

What is Dokku

The smallest PaaS implementation you've ever seen - Docker powered mini-Heroku Read more at the Dokku website

How to Setup

Requirements

Create the app

Log onto your Dokku Host to create the minio app

dokku apps:create minio

Set Environment Variables

minio uses an access key and secret key for login, and object management. You can set custom keys with /Environment Variables/. if keys aren't set, minio server will generate them.

dokku config:set minio MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
dokku config:set minio MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/EXAMPLEKEY

Note: you can find the minio generated keys by checking app logs, with: dokku logs minio

Download Dockerfile

from your local machine clone this repo

git clone https://github.com/slypix/minio-dokku.git
cd minio-dokku

Add Dokku remote, and Deploy

git remote add dokku dokku@<your-dokku-host.com>:minio
git push dokku master

Add Persistent/External Storage

minio will use docker’s container (non-persistent) directory \home\dokku\data, if you need to (stop_rebuild_restart) the app you will loose all data from that directory. So we can map a host directory to \home\dokku\data with Dokku Storage to make it persistent.

you can use an existing directory or create a new one make sure you switch to dokku user before you create a new directory

su dokku
mkdir /home/dokku/minio/data

Mount directory and restart app:

dokku storage:mount minio /home/dokku/minio/data:/home/dokku/data
dokku ps:restart minio

About

Dockerfile to run Minio (S3 compatible storage) on Dokku (mini-Heroku)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 80.5%
  • Procfile 19.5%