diff --git a/README.md b/README.md index 173e038..bc38ae8 100644 --- a/README.md +++ b/README.md @@ -111,3 +111,21 @@ While connected to WireGuard, navigate to http://10.2.0.100/admin *The password (unless you set it in `docker-compose.yml`) is blank.* ![](https://i.imgur.com/hlHL6VA.png) + +--- + +## Configuring for Dynamic DNS (DDNS) +If you're using a dynamic DNS provider, you can edit `docker-compose.yml` under "wireguard". +Here is an excerpt from the file. + +You need to uncomment `#- SERVERURL` so it reads `- SERVERURL` without the `#` and then change `my.ddns.net` to your DDNS URL. + +```yaml +wireguard: + # ... + environment: + # ... + - SERVERURL=my.ddns.net #optional - For use with DDNS (Uncomment to use) + # ... + # ... +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0168cf8..a046361 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,6 +34,7 @@ services: - PGID=1000 - TZ=America/Los_Angeles # Change to your timezone - SERVERPORT=51820 + #- SERVERURL=my.ddns.net #optional - For use with DDNS (Uncomment to use) - PEERS=1 # How many peers to generate for you (clients) - PEERDNS=10.2.0.100 # Set it to point to pihole - INTERNAL_SUBNET=10.6.0.0