neb/servers/link/docker-compose.d/docker-compose.wireguard.yml

22 lines
493 B
YAML
Raw Normal View History

2023-10-23 02:32:13 +02:00
version: "3.8"
2023-10-23 02:16:24 +02:00
services:
wireguard:
2023-10-23 02:32:13 +02:00
image: weejewel/wg-easy
restart: unless-stopped
2023-10-23 02:16:24 +02:00
cap_add:
- NET_ADMIN
2023-10-23 02:32:13 +02:00
- SYS_MODULE
2023-10-23 02:16:24 +02:00
ports:
- "51820:51820/udp"
env_file:
2023-10-23 02:32:13 +02:00
- /etc/ixvd/secrets/env/wg.env
2023-10-23 02:16:24 +02:00
environment:
2023-10-23 02:32:13 +02:00
- WG_HOST=link.ixvd.net
2023-10-23 02:37:25 +02:00
- WG_DEFAULT_DNS=127.0.0.11,9.9.9.9,1.1.1.1
2023-10-23 02:32:13 +02:00
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
2023-10-23 02:16:24 +02:00
volumes:
2023-10-23 02:32:13 +02:00
- /srv/wg/config:/etc/wireguard
networks:
- proxy