Skip to content

Commit c19ff8a

Browse files
Add server compose file
1 parent f30e814 commit c19ff8a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

example/reverse-tunneling-authenticated.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,25 @@ R:80:localhost:80
5555
This guide makes use of Docker and docker-compose to accomplish the same task as the above guide, using the chisel container.
5656

5757
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+
```

0 commit comments

Comments
 (0)