From c19ff8a194db71bf66d220dac5fd070e52c20e82 Mon Sep 17 00:00:00 2001 From: Noah Williams Date: Sat, 13 Mar 2021 12:29:23 -0900 Subject: [PATCH] Add server compose file --- example/reverse-tunneling-authenticated.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/example/reverse-tunneling-authenticated.md b/example/reverse-tunneling-authenticated.md index e44f1e3..ae33947 100644 --- a/example/reverse-tunneling-authenticated.md +++ b/example/reverse-tunneling-authenticated.md @@ -55,3 +55,25 @@ R:80:localhost:80 This guide makes use of Docker and docker-compose to accomplish the same task as the above guide, using the chisel container. It assumes your webserver is also containerized and listening on port 80. + +### Server + +```yaml +version: '3' + +services: + chisel: + image: jpillora/chisel + restart: unless-stopped + container_name: chisel + # ⬇️ Pass CLI arguments one at a time in an array, as required by compose. + command: + - 'server' + - '--authfile=/users.json' + - '--reverse' + # ⬇️ Mount the authfile as a docker volume + volumes: + - './users.json:/users.json' + # ⬇️ Give the container unrestricted access to the docker host's network + network_mode: host +``` \ No newline at end of file