Docker安装WireGuard

Docker安装WireGuard

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
version: "2.1"
services:
wireguard:
image: linuxserver/wireguard:latest
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- SERVERURL=domian.com
#域名
- SERVERPORT=51820
#端口
- PEERS=1
- PEERDNS=223.5.5.5
#dns地址
- INTERNAL_SUBNET=172.16.21.0
#内部地址段
- ALLOWEDIPS=0.0.0.0/0
- PERSISTENTKEEPALIVE_PEERS=all
- LOG_CONFS=true
volumes:
- ./config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped

Docker安装WireGuard
https://kuan.pages.dev/article/10030833.html
作者
IKun
发布于
2023年8月30日
许可协议