GithubHelp home page GithubHelp logo

niliovo / zerotier_docker Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 262 KB

zerotier,zerotier-moon,ztncui-zh in one Docker-container

License: GNU General Public License v3.0

Dockerfile 7.18% Shell 92.82%
docker docker-compose docker-container docker-image dockerfile zerotier zerotier-moon ztncui ztncui-zh zerotier-controller

zerotier_docker's Introduction

此仓库不再维护,请前往新项目zerotier-aio-zh

# zerotier_moon_ztncui_docker

- 中文 - ENGLISH

- Github - Docker Hub

# 本项目基于下列项目,将 zerotier,zerotier-moon,ztncui中文版 集成到一个docker镜像

- zerotier - docker-zerotier-moon - ztncui-aio - ztncui-zh

## Docker-Cli使用指南

bash~~ ~~docker run -itd --name zerotier --hostname zerotier --net host --restart always --cap-add ALL --device /dev/net/tun:/dev/net/tun -v /your_path/zerotier/zerotier-one:/var/lib/zerotier-one -v /your_path/zerotier/etc:/opt/key-networks/ztncui/etc -e TZ=Asia/Shanghai -e IPV4=0.0.0.0 -e IPV6=::1 -e ZTNCUI_ADMIN=admin -e ZTNCUI_PASSWD=password -e HTTP_ALL_INTERFACES=yes -e HTTP_PORT=9994 niliaerith/zerotier:latest~~ ~~

## Docker Compose使用指南

compose.yml~~ ~~ zerotier:~~ ~~ image: niliaerith/zerotier:latest~~ ~~ container_name: zerotier~~ ~~ hostname: zerotier~~ ~~ restart: zerotier~~ ~~ network_mode: host~~ ~~ restart: always~~ ~~ cap_add:~~ ~~ # - ALL~~ ~~ - NET_ADMIN~~ ~~ # - SYS_ADMIN~~ ~~ # - NET_BIND_SERVICE~~ ~~ devices:~~ ~~ - /dev/net/tun:/dev/net/tun~~ ~~ volumes:~~ ~~ - /your_path/zerotier/zerotier-one:/var/lib/zerotier-one~~ ~~ - /your_path/zerotier/etc:/opt/key-networks/ztncui/etc~~ ~~ environment:~~ ~~ - TZ=Asia/Shanghai~~ ~~ - MOON_PORT=9993~~ ~~ - IPV4=0.0.0.0~~ ~~ - IPV6=::1~~ ~~ - ZTNCUI_ADMIN=admin~~ ~~ - ZTNCUI_PASSWD=password~~ ~~ - HTTP_ALL_INTERFACES=yes~~ ~~ - HTTP_PORT=9994~~ ~~

## 变量

> 必须变量 ~~- cap_add: ~~ - - - NET_ADMIN- ALL 选择其中一个,让zerotier获取网络管理权

> 可选变量 - cap_add: - - - SYS_ADMINNET_BIND_SERVICE 可有可无 - devices: - - - /dev/net/tun:/dev/net/tun 启用tun模块 - volumes: - - - /your_path/zerotier/zerotier-one:/var/lib/zerotier-one 为映射 zerotier 目录,moon 信息储存在这里 - - - /your_path/zerotier/etc:/opt/key-networks/ztncui/etc 为映射 ztncui 目录, 用户名和密码信息储存在这里 - environment: - - - TZ=Asia/Shanghai 是时区选项,默认为 UTC时间 - - MOON_PORT=9993zerotier moon 占用端口,默认为 9993 - - - IPV4=0.0.0.0ipv4 地址, 默认为 0.0.0.0 - - - IPV6=::1ipv6 地址, 默认为 ::1 - - - ZTNCUI_ADMIN=admin 是管理员名称,默认为 admin - - - ZTNCUI_PASSWD=password 是管理员密码,默认为 password - - - HTTP_ALL_INTERFACES=yes 为是否启用绑定到所有网络,默认为 yes - - - HTTP_PORT=9994ztncui 管理界面端口

## 支持平台

- amd64

# 感谢

- GitHub - Docker Hub - zerotier - docker-zerotier-moon - ztncui-aio - ztncui-zh - Github文件加速 - 中科大源

zerotier_docker's People

Contributors

niliovo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.