File tree Expand file tree Collapse file tree 2 files changed +27
-22
lines changed Expand file tree Collapse file tree 2 files changed +27
-22
lines changed Original file line number Diff line number Diff line change
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
+ ```
Original file line number Diff line number Diff line change @@ -25,32 +25,14 @@ docker stop <running_minio_container_id>
25
25
docker create -v /export --name minio-export minio/my-minio /bin/true
26
26
```
27
27
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 .
29
29
30
30
``` 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
32
32
```
33
33
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.
51
35
52
36
``` 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
56
38
```
You can’t perform that action at this time.
0 commit comments