diff --git a/zerotier/data/.gitkeep b/zerotier/data/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/zerotier/docker-compose.yml b/zerotier/docker-compose.yml new file mode 100644 index 000000000..6e7d72607 --- /dev/null +++ b/zerotier/docker-compose.yml @@ -0,0 +1,40 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: $APP_ZEROTIER_WEB_IP + APP_PORT: 8080 + + zerotier: + # Requires root: NET_ADMIN cap and /dev/net/tun device access for VPN tunnel management. + image: zerotier/zerotier:1.14.2@sha256:575d150a0e09fbee1a7580625b361040a7f78f46cbfbe5016effe812abe202ff + restart: on-failure + stop_grace_period: 1m + network_mode: host + cap_add: + - NET_ADMIN + devices: + - /dev/net/tun + environment: + ZEROTIER_API_SECRET: ${APP_PASSWORD} + volumes: + - ${APP_DATA_DIR}/data:/var/lib/zerotier-one + - ${APP_DATA_DIR}/local.conf:/var/lib/zerotier-one/local.conf:ro + + web: + # Built from github.com/andrijdavid/umbrel-zerotier-web (FastAPI + uvicorn). + # Calls the daemon's management API with the seeded token configured above. + image: ghcr.io/andrijdavid/umbrel-zerotier-web:0.1.1@sha256:0177ec5254860e3ad0c59e174034816496bd0a63cda203a2c663f08b3c205063 + restart: on-failure + depends_on: + - zerotier + environment: + ZT_HOST: $GATEWAY_IP + ZT_PORT: "9993" + ZT_AUTHTOKEN: ${APP_PASSWORD} + PUID: "1000" + PGID: "1000" + networks: + default: + ipv4_address: $APP_ZEROTIER_WEB_IP diff --git a/zerotier/exports.sh b/zerotier/exports.sh new file mode 100644 index 000000000..d200bf185 --- /dev/null +++ b/zerotier/exports.sh @@ -0,0 +1 @@ +export APP_ZEROTIER_WEB_IP="10.21.22.51" diff --git a/zerotier/local.conf.template b/zerotier/local.conf.template new file mode 100644 index 000000000..100409921 --- /dev/null +++ b/zerotier/local.conf.template @@ -0,0 +1,7 @@ +{ + "settings": { + "allowManagementFrom": [ + "${APP_ZEROTIER_WEB_IP}/32" + ] + } +} diff --git a/zerotier/umbrel-app.yml b/zerotier/umbrel-app.yml new file mode 100644 index 000000000..d32a5ba55 --- /dev/null +++ b/zerotier/umbrel-app.yml @@ -0,0 +1,37 @@ +manifestVersion: 1 +id: zerotier +category: networking +name: ZeroTier +version: "1.14.2" +tagline: Access your Umbrel from anywhere with a peer-to-peer mesh VPN +description: >- + ZeroTier is an open-source, peer-to-peer mesh VPN that connects your Umbrel + to your private ZeroTier networks. Once connected, you can access your + Umbrel dashboard and apps from other authorized devices using your Umbrel's + ZeroTier IP address. + + + After installing, open the app to see your node ID, then join any + ZeroTier network by pasting its 16-character network ID. Authorize your + Umbrel from ZeroTier Central (or your self-hosted controller), and you're + on the network. + + + ZeroTier works across NATs and firewalls, using end-to-end encryption so + your devices can communicate securely as if they were on the same LAN. +developer: ZeroTier, Inc. +website: https://www.zerotier.com +dependencies: [] +repo: https://github.com/zerotier/ZeroTierOne +support: https://discuss.zerotier.com +port: 8241 +gallery: + - 1.webp + - 2.webp + - 3.webp +path: "" +deterministicPassword: false +torOnly: false +submitter: Andrij David +submission: https://github.com/getumbrel/umbrel-apps/pull/5691 +releaseNotes: ""