jbtrystram / immich-podman-systemd

A set of podman quadlet unit files to deploy immich-app
14 stars 6 forks source link

Update for podman 5.0 (along with other miscellaneous changes) #1

Closed vozhyk- closed 7 months ago

vozhyk- commented 7 months ago

Podman 5.0 is out, so the workarounds can be removed. This works for me on Podman 5.0.0 on Gentoo when placed into its own (immich) user's ~/.config/containers/systemd/immich and enabled with:

# cat >> /etc/subuid <<EOF
immich:2000000:1000000
EOF
# cat >> /etc/subgid <<EOF
immich:2000000:1000000
EOF
# systemctl start user@998
# loginctl enable-linger immich
# systemctl --user -M immich@.host start immich-pod.service
jbtrystram commented 7 months ago

thanks for your contribution !

Remove unused environment variables (although it would be better to start using them instead).

I agree with you but as far as I know systemd unit files don't support substitution. Maybe we could file a feature request for the podman quadlet generator ?

could you update the main README file with the user setup instructions as well ?

vozhyk- commented 7 months ago

I've described the user setup in the README.

By the way, I noticed that some of the containers failed to start after a reboot (but did start after a manual restart), so this procedure might not be bulletproof. I'll investigate this further if containers fail next time I need to reboot the machine - that might not be soon.

jbtrystram commented 7 months ago

@vozhyk- my deployment reboots daily and i had issues with that. A fix was to add a delay in immich-server, e.g. : ExecStartPre=sleep 30

I haven't published it there because it's a bit dirty and i want to setup proper systemd notify + podman healthcheck readiness conditions. I'll do that eventually but that requires podman 5 so i need to make a major update on my NAS :)