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
|
2024-01-08 12:53:04 +01:00
|
|
|
- WG_DEFAULT_DNS=9.9.9.10
|
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
|