8000 minio/Docker.md at master · osallou/minio · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.02 KB

Docker.md

File metadata and controls

53 lines (39 loc) · 1.02 KB

Running Minio in Docker.

Installing Docker.

sudo apt-get install Docker.io

Generating minio configs for the first time.

docker run -p 9000 minio/minio:latest

Persist minio configs.

docker commit <running_minio_container_id> minio/my-minio
docker stop <running_minio_container_id>

Create a data volume container.

docker create -v /export --name minio-export minio/my-minio /bin/true

You can then use the --volumes-from flag to mount the /export volume in another container.

docker run -p 9000 --volumes-from minio-export --name minio1 minio/my-minio

Setup a sample proxy in front using Caddy.

Please download Caddy Server

Create a caddy configuration file as below, change the ip addresses for your environment.

cat Caddyfile
10.0.0.3:2015 {
    proxy / localhost:9000 {
        proxy_header Host {host}
    }
    tls off
}
$ ./caddy
Activating privacy features... done.
10.0.0.3:2015
0