Human Being who does things

A few examples of and notes on Podman quadlets

in tech on jkossen.nl

WARNING: this post is incomplete, i published it because someone needed its content. I’ll rework it soonish.

Enable automatic updates

1systemctl --user enable podman-auto-update.service
2systemctl --user enable podman-auto-update.timer

rproxy.container

Put this file, and the other quadlets (rproxy-data.volume, podman-ipv6.network, …), in .config/containers/systemd/ within the home dir of the user which runs the container.

This will create the rproxy systemd service automatically. If not, test your configuration with:

1/usr/libexec/podman/quadlet --dryrun --user

Enable the service with:

1systemctl --user enable rproxy

contents of rproxy.container

 1[Container]
 2Image=docker.io/caddy:latest
 3PublishPort=[::]:10080:80
 4PublishPort=[::]:10443:443
 5Volume=/containers/rproxy/Caddyfile:/etc/caddy/Caddyfile
 6Volume=/containers/rproxy/security-headers.conf:/etc/caddy/security-headers.conf
 7Volume=rproxy-data.volume:/data
 8Network=podman-ipv6.network
 9AutoUpdate=registry
10
11[Install]
12WantedBy=default.target

rproxy-data.volume

1[Volume]

podman-ipv6.network

1[Network]
2Driver=bridge
3IPv6=true
4Subnet=10.85.1.0/24
5Gateway=10.85.1.1
6Subnet=fd41:22a1:adca:2142::/64
7Gateway=fd41:22a1:adca:2142::1
8IPAMDriver=host-local
9DisableDNS=true

Tags: podmanquadletssystemdlinux

Permalink: https://jkossen.nl/quadlets/