Add clarification on --transparent mode for docker

This commit is contained in:
Clement 2023-08-09 22:57:47 +08:00 committed by GitHub
parent 27f3e9075a
commit b11f2620ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"