Jafner.net/docker_config/wireguard/docker-compose.yml
2021-03-01 11:45:53 -08:00

29 lines
631 B
YAML

---
version: "2.1"
services:
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
- SERVERPORT=53820
- SERVERURL=auto
- PEERS=3
- PEERDNS=192.168.1.22
- INTERNAL_SUBNET=10.13.14.0
volumes:
- /home/joey/docker/wireguard/config:/config
- /lib/modules:/lib/modules
ports:
- 53820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
labels:
- traefik.enable=false
restart: unless-stopped