Closed spysir closed 11 months ago
ZT_PORT=9994 API_PORT=3443 FILE_PORT=3000
docker run -d --name myztplanet\ -p ${ZT_PORT}:${ZT_PORT} \ -p ${ZT_PORT}:${ZT_PORT}/udp \ -p ${API_PORT}:${API_PORT}\ -p ${FILE_PORT}:${FILE_PORT} \ -e ZT_PORT=${ZT_PORT} \ -e API_PORT=${API_PORT} \ -e FILE_SERVER_PORT=${FILE_PORT} \ -v /data/zerotier/dist:/app/dist \ -v /data/zerotier/ztncui:/app/ztncui\ -v /data/zerotier/one:/var/lib/zerotier-one\ -v /data/config:/app/config\ xubiaolin/zerotier-planet:latest
有的,只是交互脚本没时间写
ZT_PORT=9994 API_PORT=3443 FILE_PORT=3000
docker run -d --name myztplanet -p ${ZT_PORT}:${ZT_PORT} -p ${ZT_PORT}:${ZT_PORT}/udp -p ${API_PORT}:${API_PORT} -p ${FILE_PORT}:${FILE_PORT} -e ZT_PORT=${ZT_PORT} -e API_PORT=${API_PORT} -e FILE_SERVER_PORT=${FILE_PORT} -v /data/zerotier/dist:/app/dist -v /data/zerotier/ztncui:/app/ztncui -v /data/zerotier/one:/var/lib/zerotier-one -v /data/config:/app/config xubiaolin/zerotier-planet:latest
有的,只是交互脚本没时间写
请问如果用docker-compose应该怎样写呢
ZT_PORT=9994 API_PORT=3443 FILE_PORT=3000
docker run -d --name myztplanet -p ${ZT_PORT}:${ZT_PORT} -p ${ZT_PORT}:${ZT_PORT}/udp -p ${API_PORT}:${API_PORT} -p ${FILE_PORT}:${FILE_PORT} -e ZT_PORT=${ZT_PORT} -e API_PORT=${API_PORT} -e FILE_SERVER_PORT=${FILE_PORT} -v /data/zerotier/dist:/app/dist -v /data/zerotier/ztncui:/app/ztncui -v /data/zerotier/one:/var/lib/zerotier-one -v /data/config:/app/config xubiaolin/zerotier-planet:latest
有的,只是交互脚本没时间写
已经搞定,多谢指点
如果有已经编译好了的docker镜像就方便多了