[Unit] # Nightly image updates. Replaces watchtower, which recreated containers outside # their podman-compose pod and took gitea down for three days — see the header # of server/scripts/update-containers. Description=Pull new container images and restart changed services Documentation=https://git.gbrown.org/gib/Panama # Needs the network and the podman socket path to exist. After=network-online.target Wants=network-online.target [Service] Type=oneshot # %h rather than a literal home so the unit works for whichever user linked it. # The one assumption is the standard checkout path; a machine with PANAMA_PATH # somewhere else edits this line, and setup-server will say so when the script # is not where this points. ExecStart=%h/.local/share/Panama/server/scripts/update-containers # Pulling ~20 images over a slow registry can take a while; do not kill it early. TimeoutStartSec=3600 # The script logs to ~/Server/logs/update-containers.log as well as the journal. StandardOutput=journal StandardError=journal