Skip to content

spotsnel/headscale-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Headscale (system container)

Containerized version of headscale for use with podman

Usage

Container creation

Start the system container. You can choose between the following options: Debian, Fedora or RHEL UBI9

Debian-based
$ podman run -d --name=headscale \
        --hostname $HOSTNAME-headscale \
        --network=host --systemd=always \
        ghcr.io/spotsnel/headscale-systemd:latest
Fedora-based
$ podman run -d --name=headscale \
        --hostname $HOSTNAME-headscale \
        --network=host --systemd=always \
        ghcr.io/spotsnel/headscale-systemd/fedora:latest
RHEL UBI9-based
$ podman run -d --name=headscale \
        --hostname $HOSTNAME-headscale \
        --network=host --systemd=always \
        ghcr.io/spotsnel/headscale-systemd/ubi9:latest

Systemd

The lifecycle of the container can be maintained by the host using a systemd service unit:

$ (cd $HOME/.config/systemd/user && podman generate systemd --name --files headscale)
$ systemctl --user enable --now container-headscale
$ loginctl enable-linger $USER