Immich: change Upload and/or Library location

What app is this about, and its version: Immich 3.1.0~ynh1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: Old laptop or computer

Describe your issue

I’d like to change the upload and library folder locations to an external hard drive, temporarily. Later this year, I will be moving my server and adding a NAS, and will need to update the folder again. What is the most stable way to do so that persists across reboots, updates, etc?

I found a few posts about this, but nothing that felt like a full, concrete answer. This one mentions environment variables (which reset upon update, so I’m not doing that) and bind mounts (but the instructions are confusing and feel incomplete).

Has anyone else had success moving Immich’s upload and library folder locations to an external drive, or NAS? Can you please give me full instructions on how you achieved this?

Share relevant logs or error messages

n/a

With the issues I was experiencing getting this set up, I just ended up installing Immich directly on my NAS, and putting the machine-learning module on a separate, local, server with more power. The YunoHost server has a Redirect app I use to reverse-proxy to the NAS. And I use a secondary Redirect app to give myself a convenient shortcut from the portal.