foodotfiles/docker/wireguard/docker-compose.yml

23 lines
506 B
YAML
Raw Normal View History

2020-10-19 14:21:24 +00:00
version: "2.1"
services:
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- TZ=Europe/Helsinki
- PEERS=4
2020-12-06 09:36:01 +00:00
- SERVERURL=korhonen.cc
2020-10-19 14:21:24 +00:00
- SERVERPORT=48574
- INTERNAL_SUBNET=10.200.200.0/24
volumes:
- /docker/wireguard:/config
- /lib/modules:/lib/modules
ports:
- 48574:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped