This commit is contained in:
Zengtudor 2024-11-09 10:49:12 +08:00
parent dd2cd5ad35
commit 1e992f23d0
3 changed files with 26 additions and 1 deletions

View File

@ -15,4 +15,4 @@ services:
- "25565:25565"
stdin_open: true
tty: true
mem_limit: 10G
mem_limit: ${MAX_MEMORY}

2
rxr_zerotier/.env Normal file
View File

@ -0,0 +1,2 @@
IP_ADDR4=x.x.x.x
ZT_PLANET_PATH=/root/zerotier_planet

View File

@ -0,0 +1,23 @@
version: '3'
services:
myztplanet:
image: xubiaolin/zerotier-planet:latest
container_name: ztplanet
ports:
- 9994:9994
- 9994:9994/udp
- 3443:3443
- 3000:3000
environment:
- IP_ADDR4=${IP_ADDR4}
- IP_ADDR6=
- ZT_PORT=9994
- API_PORT=3443
- FILE_SERVER_PORT=3000
volumes:
- ${ZT_PLANET_PATH}/dist:/app/dist
- ${ZT_PLANET_PATH}/ztncui:/app/ztncui
- ${ZT_PLANET_PATH}/one:/var/lib/zerotier-one
- ${ZT_PLANET_PATH}/config:/app/config
restart: unless-stopped