Sign inSign up

leshak/ztclui

By leshak

Updated about 3 years ago

ZeroTier Controller UI

Image
0

877

leshak/ztclui repository overview

Self-Hosting ZeroTier Network Controller User Interface

Install ZeroTire (controller)

curl -s https://install.zerotier.com | sudo bash

Install docker

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04

Settings

docker-compose.yml
version: "3"

services:
  cache:
    image: redis:6.2-alpine
    container_name: ztclui-cache
    restart: always
    network_mode: host
    command: redis-server --save 20 1 --loglevel warning --requirepass EVq7vhz8ilY6wrQGQjkVznuwDzMu1KZB
    volumes:
      - cache:/data

  ztc:
    image: leshak/ztclui:latest
    container_name: ztclui
    restart: always
    depends_on:
      - cache
    network_mode: host
    environment:
      NODE_ENV: production
      PORT: 9090
      ORIGIN: "http://domain.example.com"
      # ZeroTire controller API host
      ZT_HOST: "127.0.0.1:9993"
      # Redis for DB
      REDIS_HOST: 127.0.0.1
      REDIS_PORT: 6379
      REDIS_PASSWORD: EVq7vhz8ilY6wrQGQjkVznuwDzMu1KZB

  caddy:
    image: caddy/caddy:alpine
    container_name: ztclui-caddy
    restart: unless-stopped
    network_mode: host
    volumes:
      - $PWD/Caddyfile:/etc/caddy/Caddyfile
      - $PWD/site:/srv
      - caddy_data:/data
      - caddy_config:/config

volumes:
  cache:
    driver: local
  caddy_data:
  caddy_config:
Caddyfile
domain.example.com {
  reverse_proxy 127.0.0.1:9090  {
    header_down Strict-Transport-Security max-age=31536000;
  }

  # Basic auth - https://caddyserver.com/docs/caddyfile/directives/basicauth
  #basicauth /* {
  #  Bob $2a$14$Zkx19XLiW6VYouLHR5NmfOFU0z2GTNmpkT/5qqR7hx4IjWJPDhjvG
  #}
}

Run

docker-compose up -d

Screenshots

image info

image info

image info

Tag summary

Content type

Image

Digest

sha256:74f56f7db

Size

43.3 MB

Last updated

about 3 years ago

docker pull leshak/ztclui