mirror of
https://github.com/michivonah/docker.git
synced 2025-12-22 20:36:27 +01:00
create podman script for openziti tunneler tunneler
This commit is contained in:
parent
f6b66d9b3a
commit
0a7fd56fd2
2 changed files with 25 additions and 0 deletions
3
openziti/tunneler/example.env
Normal file
3
openziti/tunneler/example.env
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
ZITI_ENROLL_TOKEN=your-token
|
||||||
|
ZITI_UID=your-user-id
|
||||||
|
ZITI_GID=your-group-id
|
||||||
22
openziti/tunneler/podman.sh
Normal file
22
openziti/tunneler/podman.sh
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue