From 27f3e9075a338f0f266ef7ddc7178c6f65eabf03 Mon Sep 17 00:00:00 2001 From: clement Date: Tue, 8 Aug 2023 08:11:08 +0800 Subject: [PATCH] update examples --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1af4ea8..d396b15 100644 --- a/README.md +++ b/README.md @@ -99,14 +99,14 @@ services: sysctls: - net.ipv4.conf.default.route_localnet=1 - net.ipv4.conf.all.route_localnet=1 - command: --transparent --foreground --listen=0.0.0.0:443 --tls=localhost:8443 --openvpn=localhost:1194 --wireguard=localbox:51820 + command: --transparent --foreground --listen=0.0.0.0:443 --tls=localhost:8443 --openvpn=localhost:1194 ports: - 443:443 #sslh - 80:80 #nginx - 8443:8443 #nginx - - 1194:1994 #openvpn + - 1194:1194 #openvpn extra_hosts: - localbox:host-gateway restart: unless-stopped @@ -141,11 +141,22 @@ services: #sysctls: # - net.ipv4.conf.default.route_localnet=1 # - net.ipv4.conf.all.route_localnet=1 - command: --transparent --foreground --listen=0.0.0.0:443 --tls=localhost:8443 --openvpn=localhost:1194 --wireguard=localhost:51820 + command: --transparent --foreground --listen=0.0.0.0:443 --tls=localhost:8443 --openvpn=localhost:1194 network_mode: host restart: unless-stopped -``` + + nginx: + image: nginx:latest + ..... + ports: + - 8443:8443 # bind to docker host on port 8443 + openvpn: + image: openvpn:latest + ..... + ports: + - 1194:1194 # bind to docker host on port 1194 +``` Comments? Questions? ====================