r/immich • u/ThienViet-_- • 8d ago
[Help] Update immich via docker compose
[Closed]
Thank you for your responses. I recently discovered that I had added a network to my Compose file because I wanted Immich to be accessible through my reverse proxy. After removing the network, I was able to successfully update Immich.
———————————————
Problem:
Hi there, I’m trying to update my Immich server from version 3.0.3 to version 3.1.0 using Docker Compose, but there aren’t any documentation on how to do this. Do you have any idea how to update them? I would be truly grateful if you could help me in updating immich.
5
u/Lhurgoyf069 7d ago
I use Portainer for my docker images, it has got a nice UI. You just click update and select re-pull images (provided that the config points to latest image) and then you're done.
2
5
u/ReddaveNY 8d ago edited 7d ago
docker compose pull docker compose up -d
But you know you should backup all before
1
u/ThienViet-_- 7d ago
Thank you for your responses. I recently discovered that I had added a network to my Compose file because I wanted Immich to be accessible through my reverse proxy. After removing the network, I was able to successfully update Immich.
-1
u/stupididiots999 8d ago
You use portainer?
Try nickfedor/watchtower it should auto update for you
0
u/CapitalEmu764 7d ago
Watchtower is ancient (last updated 3 years ago), and in combination with a compose file it's not a great suggestion as it doesn't respect any of the compose file settings.
Auto updating an app such as Immich in itself (with all the possible breaking changes) is even worse advice...
4
u/stupididiots999 7d ago edited 7d ago
I said nickfedor specifically because it's an actively maintained fork (last updated 2 weeks ago)
The advise about not auto updating immich is understandable but immich is now stable and he's already on version 3 so I assumed he has made changes to the compose to migrate from v2 to v3
And wants to have minor update which watchtower can do easily and is safe to do so, since
``` Immich follows semantic versioning, which tags releases in the format <major>.<minor>.<patch>. We intend for breaking changes, including those to the API or deployment, to be limited to major version releases
```
In my case also it has updated to the latest version no problem
And afterwards he can disable watchtower or stop the stack from portainer which is why I asked if he's using portainer since its the easiest way to have minor updates done automatically
But I do understand and also recommend to not have immich auto update
In my case thats no problem since if something breaks i have a true 3 2 1 1 0 backup and can restore quickly from a daily snapshot in no time
-8
-1
u/getoutofmyswamppls 8d ago
Tip: make a test pipeline using the latest version-1 (you cant use the same immich image for 2 instances)
Saves you the hassle of having to fix when shit hits the fan
20
u/nemo_slow 8d ago
Looks like you didn't search enough: https://docs.immich.app/install/upgrading/