homeserver/docker/stacks/wireguard/wireguard.yml
2022-02-15 15:12:34 +00:00

31 lines
709 B
YAML

services:
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
networks:
- wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- SERVERURL=${WG_URL}
- SERVERPORT=51820
- PEERS=${WG_PEERS}
- PEERDNS=auto
- ALLOWEDIPS=${WG_ALLOWEDIPS}
volumes:
- ${APPS_DIR}/wireguard:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
networks:
wireguard:
name: wireguard