mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-18 16:49:06 +02:00
Update docs/content/examples/use-cases/bind-smtp-network-interface.md
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
parent
0d0c93f9ab
commit
fb346c9d2a
1 changed files with 6 additions and 3 deletions
|
@ -69,11 +69,14 @@ to the respective IP-address on the server you want to use.
|
|||
- mailnet
|
||||
...
|
||||
networks:
|
||||
mailnet:
|
||||
name: mailnet
|
||||
driver: bridge
|
||||
default:
|
||||
driver_opts:
|
||||
# Set a specific IP to default bind container ports to instead of `0.0.0.0`:
|
||||
# https://docs.docker.com/engine/network/drivers/bridge/#default-host-binding-address
|
||||
com.docker.network.bridge.host_binding_ipv4: 198.51.100.42
|
||||
# Force a specific source IP (SNAT):
|
||||
# https://github.com/moby/libnetwork/pull/2454
|
||||
# https://github.com/moby/moby/issues/30053#issuecomment-1077041045
|
||||
com.docker.network.host_ipv4: 198.51.100.42
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue