Files
deploy.stack/WireGuardVPN/wg-easy/stack.yml
cnphpbb ab5528b57f refactor(WireGuardVPN): 简化 stack.yml 配置文件
移除环境变量注释和冗余端口映射说明,保持配置简洁
2025-12-14 16:03:48 +08:00

22 lines
636 B
YAML

## RUN:: docker compose -p wg-easy --env-file ./WireGuardVPN/wg-easy/env.cfg -f ./WireGuardVPN/wg-easy/stack.yml up -d
services:
wg-easy:
image: ${IMAGE_TAG}
container_name: wg-easy
volumes:
- ${Volumes_Path}/data:/etc/wireguard
- /lib/modules:/lib/modules:ro
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.default.forwarding=1
restart: unless-stopped