From 41739e0913c4eef847ba38895ca3c870c8888baf Mon Sep 17 00:00:00 2001 From: Atul Jha Date: Tue, 8 Mar 2016 10:24:44 -0800 Subject: [PATCH 1/2] Fix doc as per community member suggestion. Added suggestion mentioned by our community member - fixes #1116 --- Docker.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Docker.md b/Docker.md index 6113f082f..9b3e3aff8 100644 --- a/Docker.md +++ b/Docker.md @@ -25,6 +25,11 @@ docker stop docker create -v /export --name minio-export minio/my-minio /bin/true ``` +You can also map ```.minio``` directory containing authentication information. +```bash +docker create -v /export --name minio-export -v /.minio --name minio-config minio/my-minio /bin/true +``` + You can then use the `--volumes-from` flag to mount the `/export` volume in another container. ```bash From f268762ec710a4e2b3cc764d123e4ead5637c6d8 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 8 Mar 2016 10:39:28 -0800 Subject: [PATCH 2/2] Fix docker documentation. --- Caddy.md | 23 +++++++++++++++++++++++ Docker.md | 31 ++++--------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 Caddy.md diff --git a/Caddy.md b/Caddy.md new file mode 100644 index 000000000..d278f60ce --- /dev/null +++ b/Caddy.md @@ -0,0 +1,23 @@ +### Proxy using Caddy. + +Please download [Caddy Server](https://caddyserver.com/download) + +Create a caddy configuration file as below, change the ip addresses according to your local +minio and DNS configuration. + +```bash +your.public.com { + proxy / 10.0.1.3:9000 { + proxy_header Host {host} + proxy_header X-Real-IP {remote} + proxy_header X-Forwarded-Proto {scheme} + } + tls off +} +``` + +```bash +$ ./caddy +Activating privacy features... done. +your.public.com +``` diff --git a/Docker.md b/Docker.md index 9b3e3aff8..eff319a45 100644 --- a/Docker.md +++ b/Docker.md @@ -25,37 +25,14 @@ docker stop docker create -v /export --name minio-export minio/my-minio /bin/true ``` -You can also map ```.minio``` directory containing authentication information. +You can also map ``.minio`` directory containing authentication information. + ```bash docker create -v /export --name minio-export -v /.minio --name minio-config minio/my-minio /bin/true ``` -You can then use the `--volumes-from` flag to mount the `/export` volume in another container. +You can then use the `--volumes-from` flag to mount the `/export` and ``/.minio`` volume in another container. ```bash -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](https://caddyserver.com/download) - -Create a caddy configuration file as below, change the ip addresses according to your local -minio and DNS configuration. - -```bash -your.public.com { - proxy / 10.0.1.3:9000 { - proxy_header Host {host} - proxy_header X-Real-IP {remote} - proxy_header X-Forwarded-Proto {scheme} - } - tls off -} -``` - -```bash -$ ./caddy -Activating privacy features... done. -your.public.com +docker run -p 9000 --volumes-from minio-export --volumes-from minio-config --name minio-server1 minio/my-minio ```