Skip to content

Commit 846410c

Browse files
Merge pull request minio#1205 from harshavardhana/patch-3
Fix docker documentation.
2 parents 114f9de + f268762 commit 846410c

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

Caddy.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### Proxy using Caddy.
2+
3+
Please download [Caddy Server](https://caddyserver.com/download)
4+
5+
Create a caddy configuration file as below, change the ip addresses according to your local
6+
minio and DNS configuration.
7+
8+
```bash
9+
your.public.com {
10+
proxy / 10.0.1.3:9000 {
11+
proxy_header Host {host}
12+
proxy_header X-Real-IP {remote}
13+
proxy_header X-Forwarded-Proto {scheme}
14+
}
15+
tls off
16+
}
17+
```
18+
19+
```bash
20+
$ ./caddy
21+
Activating privacy features... done.
22+
your.public.com
23+
```

Docker.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,14 @@ docker stop <running_minio_container_id>
2525
docker create -v /export --name minio-export minio/my-minio /bin/true
2626
```
2727

28-
You can then use the `--volumes-from` flag to mount the `/export` volume in another container.
28+
You can also map ``.minio`` directory containing authentication information.
2929

3030
```bash
31-
docker run -p 9000 --volumes-from minio-export --name minio1 minio/my-minio
31+
docker create -v /export --name minio-export -v /.minio --name minio-config minio/my-minio /bin/true
3232
```
3333

34-
### Setup a sample proxy in front using Caddy.
35-
36-
Please download [Caddy Server](https://caddyserver.com/download)
37-
38-
Create a caddy configuration file as below, change the ip addresses according to your local
39-
minio and DNS configuration.
40-
41-
```bash
42-
your.public.com {
43-
proxy / 10.0.1.3:9000 {
44-
proxy_header Host {host}
45-
proxy_header X-Real-IP {remote}
46-
proxy_header X-Forwarded-Proto {scheme}
47-
}
48-
tls off
49-
}
50-
```
34+
You can then use the `--volumes-from` flag to mount the `/export` and ``/.minio`` volume in another container.
5135

5236
```bash
53-
$ ./caddy
54-
Activating privacy features... done.
55-
your.public.com
37+
docker run -p 9000 --volumes-from minio-export --volumes-from minio-config --name minio-server1 minio/my-minio
5638
```

0 commit comments

Comments
 (0)