[Unit] Description=Podman pod - Nextcloud After=network-online.target AssertPathExists=/path/to/nextcloud/webroot/on/host [Service] Type=forking Restart=on-failure RestartSec=30 ExecStartPre=/path/to/nextcloud/webroot/on/host/bin/fix-htaccess ExecStart=podman play kube --replace /path/to/nextcloud.yaml ExecStop=podman play kube --down /path/to/nextcloud.yaml ## Uncomment to export named volumes after stopping the pod #ExecStopPost=podman volume export -o /path/to/clamav-db.tar clamav-db #ExecStopPost=podman volume export -o /path/to/nextcloud-psql.tar nextcloud-psql [Install] WantedBy=default.target