最后活跃于 1733350218

docker-compose.yml 原始文件
1services:
2 wireguard:
3 image: wg-easy/wg-easy:latest
4 container_name: wireguard
5 ports:
6 - "51820:51820/udp"
7 - "51821:51821/tcp"
8 volumes:
9 - ./wireguard:/etc/wireguard
10 environment:
11 - WG_HOST=your_server_ip
12 - PASSWORD_HASH=$(openssl passwd -1 your_password)
13 - PORT=51821
14 - WG_PORT=51820
15 restart: unless-stopped
16 healthcheck:
17 test: ["CMD", "wg", "show"]
18 interval: 30s
19 timeout: 10s
20 retries: 3
21