neb/servers/link/docker-compose.d/docker-compose.wireguard.yml
2023-10-23 02:32:13 +02:00

21 lines
No EOL
443 B
YAML

version: "3.8"
services:
wireguard:
image: weejewel/wg-easy
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
ports:
- "51820:51820/udp"
env_file:
- /etc/ixvd/secrets/env/wg.env
environment:
- WG_HOST=link.ixvd.net
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
volumes:
- /srv/wg/config:/etc/wireguard
networks:
- proxy