Homelab/wireguard/docker-compose.yml

28 lines
791 B
YAML
Raw Permalink Normal View History

2023-06-14 12:34:50 +02:00
---
version: "2.1"
services:
wireguard:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1002
- PGID=100
- TZ=Europe/Vienna
- SERVERURL=auto #optional
- SERVERPORT=51820 #optional
- PEERS=DivinePhone,Epiales,A13,kami,AndreLaptop #optional
- PEERDNS=192.168.0.45 #optional
- INTERNAL_SUBNET=10.0.0.0 #optional
- ALLOWEDIPS=0.0.0.0/0 #optional
- LOG_CONFS=true #optional
volumes:
- /srv/dev-disk-by-uuid-cda15581-b397-4ab7-8698-acea81fc1e9c/wireguard/config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped