This commit is contained in:
awei
2025-03-03 17:43:50 +08:00
commit 113756eaae
1497 changed files with 127997 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
version: '3.8'
services:
# ZeroTier 控制面板 (ztncui)
ztncui:
image: keynetworks/ztncui:latest
container_name: ztncui
restart: unless-stopped
ports:
- "3443:3443" # HTTPS 控制面板
- "9995:9993" # Planet 通信
- "9995:9993/udp"
volumes:
- ./zerotier-data:/var/lib/zerotier-one
environment:
- ZT_TOKEN= $ (cat ./zerotier-data/authtoken.secret)
- HTTPS_HOST=0.0.0.0
- HTTPS_PORT=3443
networks:
- zt-network
# 自建 Planet (根服务器)
planet:
image: xubiaolin/zerotier-planet:latest
container_name: zerotier-planet
restart: unless-stopped
ports:
- "9994:9994" # Planet 端口
- "9994:9994/udp"
environment:
- IP_ADDR4= $ (curl -s ifconfig.me) # 自动获取公网IP
- ZT_PORT=9994
networks:
- zt-network
# Moon 中继服务器
moon:
image: jonnyan404/zerotier-moon
container_name: zerotier-moon
restart: unless-stopped
ports:
- "9993:9993/udp" # Moon 端口
volumes:
- ./moon-data:/var/lib/zerotier-one
environment:
- ENDPOINTS= $ (curl -s ifconfig.me)/9993 # 自动设置Moon地址
networks:
- zt-network
networks:
zt-network:
driver: bridge