|
|
2 年 前 | |
|---|---|---|
| .github | 2 年 前 | |
| dockerfile | 2 年 前 | |
| .gitattributes | 2 年 前 | |
| LICENSE | 2 年 前 | |
| README.md | 2 年 前 | |
| README_EN.md | 2 年 前 |
注意,本仓库为汉化仓库,提交ISSUE请前往原仓库
host模式
docker run -itd --name ztncui-aio-zh --hostname ztncui-aio-zh --net host --restart always --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun -v /your_path/ztncui-aio-zh/opt/key-networks/ztncui/etc:/opt/key-networks/ztncui/etc -v /your_path/ztncui-aio-zh/var/lib/zerotier-one:/var/lib/zerotier-one -v /your_path/ztncui-aio-zh/etc/zt-mkworld:/etc/zt-mkworld -e PUID=0 -e PGID=0 -e TZ=Asia/Shanghai -e NODE_ENV=production -e HTTPS_HOST=xxx.xxx.xxx.xxx -e HTTPS_PORT=3443 -e HTTP_PORT=3000 -e HTTP_ALL_INTERFACES=yes -e MYDOMAIN=ztncui.docker.test -e ZTNCUI_PASSWD=YourPassWD -e MYADDR=PublicIP --privileged=true niliaerith/zerotier-aio-zh:latest
bridge模式
docker run -itd --name ztncui-aio-zh --hostname ztncui-aio-zh --net bridge -p3000:3000 -p3180:3180 -p3443:3443 -p9993:9993/udp --restart always --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun -v /your_path/ztncui-aio-zh/opt/key-networks/ztncui/etc:/opt/key-networks/ztncui/etc -v /your_path/ztncui-aio-zh/var/lib/zerotier-one:/var/lib/zerotier-one -v /your_path/ztncui-aio-zh/etc/zt-mkworld:/etc/zt-mkworld -e PUID=0 -e PGID=0 -e TZ=Asia/Shanghai -e NODE_ENV=production -e HTTPS_HOST=xxx.xxx.xxx.xxx -e HTTPS_PORT=3443 -e HTTP_PORT=3000 -e HTTP_ALL_INTERFACES=yes -e MYDOMAIN=ztncui.docker.test -e ZTNCUI_PASSWD=YourPassWD -e MYADDR=PublicIP --privileged=true niliaerith/zerotier-aio-zh:latest
host模式
ztncui-aio-zh:
image: niliaerith/ztncui-aio-zh:latest
container_name: ztncui-aio-zh
hostname: ztncui-aio-zh
restart: always
cap_add:
- ALL
devices:
- /dev/net/tun
network_mode: host
volumes:
- /your_path/ztncui-aio-zh/opt/key-networks/ztncui/etc:/opt/key-networks/ztncui/etc
- /your_path/ztncui-aio-zh/var/lib/zerotier-one:/var/lib/zerotier-one
- /your_path/ztncui-aio-zh/etc/zt-mkworld:/etc/zt-mkworld
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
- NODE_ENV=production
- HTTPS_HOST=xxx.xxx.xxx.xxx
- HTTPS_PORT=3443
- HTTP_PORT=3000
- HTTP_ALL_INTERFACES=yes
- MYDOMAIN=ztncui.docker.test
- ZTNCUI_PASSWD=YourPassWD
- MYADDR=PublicIP
privileged: true
bridge模式
ztncui-aio-zh:
image: niliaerith/ztncui-aio-zh:latest
container_name: ztncui-aio-zh
hostname: ztncui-aio-zh
restart: always
cap_add:
- ALL
devices:
- /dev/net/tun
network_mode: bridge
ports:
- 3000:3000
- 3180:3180
- 3443:3443
- 9993:9993/udp
volumes:
- /your_path/ztncui-aio-zh/opt/key-networks/ztncui/etc:/opt/key-networks/ztncui/etc
- /your_path/ztncui-aio-zh/var/lib/zerotier-one:/var/lib/zerotier-one
- /your_path/ztncui-aio-zh/etc/zt-mkworld:/etc/zt-mkworld
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
- NODE_ENV=production
- HTTPS_HOST=xxx.xxx.xxx.xxx
- HTTPS_PORT=3443
- HTTP_PORT=3000
- HTTP_ALL_INTERFACES=yes
- MYDOMAIN=ztncui.docker.test
- ZTNCUI_PASSWD=YourPassWD
- MYADDR=PublicIP
privileged: true
armv7(未测试)
i386(node没有此版本,故不支持)