create podman script for openziti tunneler tunneler

This commit is contained in:
Michi 2025-12-20 10:11:59 +01:00
parent f6b66d9b3a
commit 0a7fd56fd2
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,3 @@
ZITI_ENROLL_TOKEN=your-token
ZITI_UID=your-user-id
ZITI_GID=your-group-id

View file

@ -0,0 +1,22 @@
#!/bin/bash
# OpenZiti Tunneler
# Environment variables
set -a
source .env
set +a
# Pod setup
podman pod create --name openziti-tunneler --replace
# Tunneler
podman run --name openziti-tunneler \
--replace \
--pod openziti-tunneler \
-d \
--net host \
-v ./data:/ziti-edge-tunnel:z,U \
--restart always \
-e ZITI_ENROLL_TOKEN=${ZITI_ENROLL_TOKEN:-} \
-u ${ZITI_UID:-1000}:${ZITI_GID:-1000} \
docker.io/openziti/ziti-host