From ab5528b57fc3672bee76b57a73d951ea70f689b2 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Sun, 14 Dec 2025 16:03:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(WireGuardVPN):=20=E7=AE=80=E5=8C=96=20?= =?UTF-8?q?stack.yml=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除环境变量注释和冗余端口映射说明,保持配置简洁 --- WireGuardVPN/wg-easy/stack.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/WireGuardVPN/wg-easy/stack.yml b/WireGuardVPN/wg-easy/stack.yml index b77a1f0..5ef1949 100644 --- a/WireGuardVPN/wg-easy/stack.yml +++ b/WireGuardVPN/wg-easy/stack.yml @@ -3,22 +3,11 @@ services: wg-easy: image: ${IMAGE_TAG} container_name: wg-easy - environment: - # [!] 重要:改成你的服务器的公网IP或域名 - - WG_HOST=${WG_HOST} - # [!] 重要:设置一个强密码来登录Web UI - - PASSWORD=${WG_PASSWORD} - # 可选:修改Web UI的端口(容器内是51821,映射到主机可自定义) - #- WG_PORT=51820 - #- WEB_PORT=51821 volumes: - # [!] 关键:将容器内的WireGuard配置目录映射到主机 - ${Volumes_Path}/data:/etc/wireguard - /lib/modules:/lib/modules:ro ports: - # 将WireGuard的端口映射到主机(必须与你原来的端口一致,通常是51820) - "51820:51820/udp" - # 将Web UI的端口映射到主机 - "51821:51821/tcp" cap_add: - NET_ADMIN