diff --git a/docs/deploying/SUMMARY.md b/docs/deploying/SUMMARY.md index dcdcdc63..88ae19d9 100644 --- a/docs/deploying/SUMMARY.md +++ b/docs/deploying/SUMMARY.md @@ -7,3 +7,4 @@ - [Arch Linux](arch-linux.md) - [Debian](debian.md) - [FreeBSD](freebsd.md) +- [Podman systemd](podman-systemd.md) diff --git a/docs/deploying/podman-systemd.md b/docs/deploying/podman-systemd.md new file mode 100644 index 00000000..8cd4becd --- /dev/null +++ b/docs/deploying/podman-systemd.md @@ -0,0 +1,16 @@ +# tuwunel in Podman systemd + +Copy [tuwunel.container](tuwunel.container) to ~/.config/containers/systemd/tuwunel.container. +Reload daemon: +``` +systemctl --user daemon-reload +``` +Start the service: +``` +systemctl --user start tuwunel +``` + +To check the logs, run: +``` +journalctl -eu tuwunel.container --user +``` diff --git a/docs/deploying/tuwunel.container b/docs/deploying/tuwunel.container new file mode 100644 index 00000000..a3b70a72 --- /dev/null +++ b/docs/deploying/tuwunel.container @@ -0,0 +1,9 @@ +[Container] +Environment=TUWUNEL_SERVER_NAME=your.domain.here TUWUNEL_DATABASE_PATH=/var/lib/tuwunel TUWUNEL_PORT=6167 TUWUNEL_MAX_REQUEST_SIZE=20000000 TUWUNEL_ALLOW_REGISTRATION=true TUWUNEL_REGISTRATION_TOKEN=YOUR_TOKEN TUWUNEL_ALLOW_FEDERATION=true TUWUNEL_ALLOW_CHECK_FOR_UPDATES=true TUWUNEL_TRUSTED_SERVERS=["matrix.org"] TUWUNEL_ADDRESS=0.0.0.0 # Add TUWUNEL_CONFIG: '/etc/tuwunel.toml' if the config is mapped +Image=docker.io/jevolk/tuwunel:latest +PublishPort=8448:6167 +Volume=/path/to/db:/var/lib/tuwunel +#Volume=/path/to/tuwunel.toml:/etc/tuwunel.toml #Uncomment to use the config file + +[Service] +Restart=always