Closed vozhyk- closed 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 ?
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.
@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 :)
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:pod
unit directly.image
unit.WantedBy=multi-user.target
fromimmich-server.container
- justWantedBy=default.target
is enough.IMMICH_MACHINE_LEARNING_URL
to the environment - otherwise,immich_microservices
tries to access it viaimmich-machine-learning
(which is not the container name) and fails.immich.env
to make it work with the unit files in any location (e.g./etc/containers/systemd
and~/.config/containers/systemd
).