Updated Wireguard

This commit is contained in:
Ash Leece 2020-10-11 22:58:20 +01:00
parent bec8dd71f0
commit 94775dae20
2 changed files with 15 additions and 8 deletions

3
wireguard/.env Normal file
View File

@ -0,0 +1,3 @@
SERVERURL=<changeme>
PEERS=<changeme>
PEERDNS=1.1.1.1

View File

@ -10,17 +10,21 @@ services:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- SERVERURL=wireguard.domain.com #optional
- SERVERPORT=51820 #optional
- PEERS=1 #optional
- PEERDNS=auto #optional
- INTERNAL_SUBNET=10.13.13.0 #optional
- ALLOWEDIPS=192.168.1.0/24,192.168.2.0/24 #optional
- SERVERURL=${SERVERURL}
- SERVERPORT=51820
- PEERS=${PEERS}
- PEERDNS=${PEERDNS}
- INTERNAL_SUBNET=10.13.13.0
- ALLOWEDIPS=192.168.1.0/24
volumes:
- /path/to/appdata/config:/config
- /lib/modules:/lib/modules
- config:/config
- modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
volumes:
config:
modules: