Browse Source

prettier

pull/2555/head
Timothy Pillow 4 months ago
parent
commit
a97ac14df3
  1. 29
      docs/content/faq.md

29
docs/content/faq.md

@ -117,22 +117,23 @@ When you attach multiple Docker networks (e.g., `wg` and a reverse proxy network
To solve this, specify the `interface_name` and `gw_priority` explicitly in your `docker-compose.yml` file to guarantee that the `wg` network always binds to `eth0` and acts as the default gateway. To solve this, specify the `interface_name` and `gw_priority` explicitly in your `docker-compose.yml` file to guarantee that the `wg` network always binds to `eth0` and acts as the default gateway.
**Example `docker-compose.yml`:** **Example `docker-compose.yml`:**
```yaml ```yaml
services: services:
wg-easy: wg-easy:
# ... other configuration ... # ... other configuration ...
networks: networks:
wg: wg:
interface_name: eth0 interface_name: eth0
gw_priority: 1 gw_priority: 1
ipv4_address: 10.42.42.42 ipv4_address: 10.42.42.42
nginx: nginx:
interface_name: eth1 interface_name: eth1
gw_priority: 0 gw_priority: 0
networks: networks:
wg: wg:
# ... wg network config ... # ... wg network config ...
nginx: nginx:
external: true external: true
``` ```

Loading…
Cancel
Save