Add clarification on --transparent mode for docker

This commit is contained in:
Clement authored and GitHub committed 2023-08-09 22:57:47 +08:00
1 parent 27f3e9075a
commit b11f2620ab
1 file changed
+5 -3
+5 -3
View File
@@ -81,8 +81,9 @@ services:
image: openvpn
```
Transparent mode 1: shared containers
Transparent mode 1: using sslh container for networking
_Note: For transparent mode to work, the sslh container must be able to reach your services via **localhost**_
```yaml
version: "3"
@@ -114,7 +115,8 @@ services:
nginx:
image: nginx:latest
.....
network_mode: service:sslh #set nginx container to use sslh networking
network_mode: service:sslh #set nginx container to use sslh networking.
# ^^^ This is required. This makes nginx reachable by sslh via localhost
openvpn:
image: openvpn:latest
@@ -122,7 +124,7 @@ services:
network_mode: service:sslh #set openvpn container to use sslh networking
```
Transparent mode 2: host networking
Transparent mode 2: using host networking
```yaml
version: "3"