File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -55,3 +55,25 @@ R:80:localhost:80
55
55
This guide makes use of Docker and docker-compose to accomplish the same task as the above guide, using the chisel container.
56
56
57
57
It assumes your webserver is also containerized and listening on port 80.
58
+
59
+ ### Server
60
+
61
+ ``` yaml
62
+ version : ' 3'
63
+
64
+ services :
65
+ chisel :
66
+ image : jpillora/chisel
67
+ restart : unless-stopped
68
+ container_name : chisel
69
+ # ⬇️ Pass CLI arguments one at a time in an array, as required by compose.
70
+ command :
71
+ - ' server'
72
+ - ' --authfile=/users.json'
73
+ - ' --reverse'
74
+ # ⬇️ Mount the authfile as a docker volume
75
+ volumes :
76
+ - ' ./users.json:/users.json'
77
+ # ⬇️ Give the container unrestricted access to the docker host's network
78
+ network_mode : host
79
+ ` ` `
You can’t perform that action at this time.
0 commit comments