Browse Source

docs: Refine AdGuard Home tutorial based on feedback

Signed-off-by: Edgar R.N <[email protected]>
pull/2175/head
Edgar R.N 10 months ago
parent
commit
7476da016b
  1. 43
      docs/content/examples/tutorials/adguard.md

43
docs/content/examples/tutorials/adguard.md

@ -38,9 +38,10 @@ services:
- /etc/docker/volumes/adguard/adguard_work:/opt/adguardhome/work - /etc/docker/volumes/adguard/adguard_work:/opt/adguardhome/work
- /etc/docker/volumes/adguard/adguard_conf:/opt/adguardhome/conf - /etc/docker/volumes/adguard/adguard_conf:/opt/adguardhome/conf
networks: networks:
traefik: wg:
ipv4_address: 10.99.99.43 ipv4_address: 10.42.42.43
ipv6_address: fdcc:99:99::2b ipv6_address: fdcc:ad94:bacf:61a3::2b
traefik: {}
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.adguard.rule=Host(`adguard.$example.com$`)" - "traefik.http.routers.adguard.rule=Host(`adguard.$example.com$`)"
@ -50,31 +51,15 @@ services:
- "traefik.docker.network=traefik" - "traefik.docker.network=traefik"
networks: networks:
wg:
external: true
traefik: traefik:
external: true external: true
``` ```
## Upgrade Network
This setup requires static IPs, so the `traefik` network must be upgraded.
1. Remove the old `traefik` network:
```bash
sudo docker network rm traefik
```
*(It is safe to ignore any error message if the network does not exist.)*
2. Next, create it again with:
```bash
sudo docker network create --driver=bridge --subnet=10.99.99.0/24 --ipv6 --subnet=fdcc:99:99::/64 traefik
```
## Update `wg-easy` configuration ## Update `wg-easy` configuration
**Replace each section** of your existing `wg-easy` compose file with the updated version below. Modify the corresponding sections of your existing `wg-easy` compose file to match the updated version below.
File: `/etc/docker/containers/wg-easy/docker-compose.yml` File: `/etc/docker/containers/wg-easy/docker-compose.yml`
@ -88,12 +73,6 @@ services:
ports: ports:
- "51820:51820/udp" - "51820:51820/udp"
... ...
networks:
...
traefik:
ipv4_address: 10.99.99.42
ipv6_address: fdcc:99:99::2a
...
environment: environment:
# Unattended Setup # Unattended Setup
- INIT_ENABLED=true - INIT_ENABLED=true
@ -104,15 +83,17 @@ services:
# Replace $example.com$ with your domain # Replace $example.com$ with your domain
- INIT_HOST=wg-easy.$example.com$ - INIT_HOST=wg-easy.$example.com$
- INIT_PORT=51820 - INIT_PORT=51820
- INIT_DNS=10.99.99.43,fdcc:99:99::2b - INIT_DNS=10.42.42.43,fdcc:ad94:bacf:61a3::2b
- INIT_IPV4_CIDR=10.8.0.0/24 - INIT_IPV4_CIDR=10.8.0.0/24
- INIT_IPV6_CIDR=fd42:42:42::/64 - INIT_IPV6_CIDR=fd42:42:42::/64
... ...
networks: networks:
wg:
# Prevents Docker Compose from prefixing the network name.
name: wg
...
... ...
traefik:
external: true
``` ```
## Start services ## Start services

Loading…
Cancel
Save