A few examples of and notes on Podman quadlets
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]