Skip to content

Instantly share code, notes, and snippets.

@mikaeldui
Last active April 22, 2025 17:46
Show Gist options
  • Save mikaeldui/9456138d0232d1a969229aafe1400e16 to your computer and use it in GitHub Desktop.
Save mikaeldui/9456138d0232d1a969229aafe1400e16 to your computer and use it in GitHub Desktop.
PeerBanHelper Podman Quadlet

PeerBanHelper as Quadlet

Quadlets are available since Podman 4.4, and offer an easy way to manage container and to keep them updated!

  1. Check podman --version.
  2. Create /etc/containers/systemd/peerbanhelper.container with the content below:
[Unit]
Description=PeerBanHelper Container

[Container]
ContainerName=peerbanhelper
Image=docker.io/ghostchu/peerbanhelper:latest
# Replace /path/to/pbh-data with an actual path.
Volume=/path/to/pbh-data:/app/data
PublishPort=9898:9898
Network=host
AutoUpdate=registry

[Install]
WantedBy=multi-user.target default.target
  1. Reload with sudo systemctl reload-daemon.
  2. Start the container now and on boot with sudo systemctl enable --now peerbanhelper.
  3. Enable automatic updates with sudo systemctl enable podman-auto-update.{service,timer}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment