No Description

key-networks 25ae5b3f6b Not exposing 9993/udp to avoid clash with ZT on host (#3) 4 years ago
argon2g 74e9804633 fix bug 4 years ago
fileserv d06c97367b add planet file server 4 years ago
.gitignore 4a7b924ad4 init commit 4 years ago
Dockerfile 25ae5b3f6b Not exposing 9993/udp to avoid clash with ZT on host (#3) 4 years ago
LICENSE 5768e83215 Changed to GPLv3 (#2) 4 years ago
README.md 25ae5b3f6b Not exposing 9993/udp to avoid clash with ZT on host (#3) 4 years ago
VERSION 25ae5b3f6b Not exposing 9993/udp to avoid clash with ZT on host (#3) 4 years ago
denv 1b5a2c3bae version 1.2.6 (#1) 4 years ago
release.sh 1b5a2c3bae version 1.2.6 (#1) 4 years ago
start_zt1.sh 15fddc5018 fix init startupdir err 4 years ago
start_ztncui.sh fe861b1446 add gatekeeper 4 years ago
supervisord.conf 7b87fc892c add chdir 4 years ago

README.md

ztncui-aio

ZeroTier network controller user interface in a Docker container

This is to build a Docker image that contains ZeroTier One and ztncui to set up a standalone ZeroTier network controller with a web user interface in a container.

Follow us on

Licensed Under GNU GPLv3

Credit

Thanks to @kmahyyg for https://github.com/kmahyyg/ztncui-aio from which this build process is forked.

Further information

Refer to https://github.com/key-networks/ztncui-containerized for the original documentation.

Usage

$ git clone https://github.com/key-networks/ztncui-aio # to get a copy of denv file, otherwise make your own
$ docker pull keynetworks/ztncui
$ docker run -d -p3443:3443 -p3180:3180 \
    -v /mydata/ztncui:/opt/key-networks/ztncui/etc \
    -v /mydata/zt1:/var/lib/zerotier-one \
    --env-file ./denv <CHANGE HERE ACCORDING TO NEXT PART> \
    --name ztncui \
    keynetworks/ztncui

Supported Configuration via persistent storage

For ZTNCUI: https://github.com/key-networks/ztncui

REQUIRED Name Explanation Default Value
no HTTPS_HOST Only Listen on HTTPS_HOST:HTTPS_PORT NO DEFAULT
no HTTPS_PORT HTTPS_PORT 3443
no HTTP_PORT HTTP_PORT 3000
no HTTP_ALL_INTERFACES Listen on all interfaces NO DEFAULT

This image additional specific:

REQUIRED Name Explanation Default Value
no MYDOMAIN generate TLS certs on the fly (if not exists) ztncui.docker.test
no ZTNCUI_PASSWD generate admin password on the fly (if not exists) password
YES MYADDR your ip address, public ip address preferred NO DEFAULT

Also, this image exposed an http server at port 3180, you could save file in /mydata/ztncui/myfs/ to serve it. (You could use this to build your own root server and distribute planet file)

WARNING: IF YOU DO NOT SET PASSWORD, YOU HAVE TO USE docker exec -it <CONTAINER NAME> bash, and then cat /var/log/docker-ztncui.log to get your random password. This is gatekeeper.