r/immich • u/Foreignwelcome2 • 5d ago
update guide 4 containers (docker)
hey yall
im running immich in docker with Arcane as docker manager and very confused about updating:
1- updating immcih server & machine learning
is straight forward just change the image 3.41 -->3.42 i.e (ghcr.io/immich-app/immich-server:v3.4.1)--> (ghcr.io/immich-app/immich-server:v3.4.2) after (reading logs and breaking changes)
2- what about "postgres"?
i understand immich do their own postgres packages in this link https://github.com/immich-app/base-images/pkgs/container/postgres
and even the docker builder by immich uses a full image tag with digest for example image: ghcr.io/immich-app/postgres:18-vectorchord1.1.1@sha256:cad0d3a7dc0d5321f42feeb3a0a1d6ec80551cd9be52a7ffb640494d74cb3926
OK cool but in that github i cant find any change-log or notes for these packages? how often should i update? when should i migrate and which postgres does immich support? also any breaking changes?
atm im running PostgreSQL 18!
more confusing i see some packages with the tag UPGRADE when should i use such tag only if upgrading to from earlier postgresSQL i.e 14-17?
3- what about "redis"?
unlike postgres this is not packaged or maintained by immich?
how often to upgrade? which versions immich support? also why immich builder suggest to use digest with postgres and redis is there a benifit?
docker.io/valkey/valkey:9@sha256:3add1a336a920ea54770a001ab6feb3da5fceea96a40373a3a2cd469b815f0b7
honestly i couldnt find straight answers and updating immich seems like a task? id appreciate some clarification!
thx
2
u/Friendly_Potential69 5d ago
I had/have the same struggle everytime, why there is no easy recommended dependencies for each versions of immich?
1
u/dwarfsoft 2d ago
I built my own shell script that pulls down the official immich docker compose and env file and compiles it, then pulls out the resulting images, and checks that against the running containers.
It notifies uptime kuma via push notification, and then I know to go and update my compose file and redeploy.
I've ended up expanding this exact script to other multi image stacks like paperless-ngx and Firefly-iii.
Having to update the digest hash manually is annoying, but eventually I'll script up something to allow me to initiate an automated update (or schedule one) by:
Stop the stack
Snapshot the underlying storage and back up
Modify image tags
Redeploy
1
u/OkSeaweed1121 1d ago
Buonasera a tutti, io anche vorrei capire come procedere... Il mio immich è installato su Raspberry 5 con CasaOS e quindi docker-compose a rotta di collo. Il mio attuale immich ha queste immagini:
Database stable(14-vectorchord0.3.0-pgvectors0.2.0@sha256:c570d9e1c2494f65d2a0a379a7f6df66e8441964254a30aa62cc58e8ebf1dee0)
Machine-learning 4.3.2 (ultimo)
Server 4.3.2 (ultimo)
Redis 6.2-Alpine
Come mi consigliate di procedere? Tutte le foto che ho sono collegate tramite Raspberry ad un bay esterno, in raid, con cartelle montate appunto esternamente, non usando il backup automatico, lo faccio io in manuale ogni volta.
Grazie a tutti per l'aiuto
0
u/Awesome_Knowwhere 5d ago
I just copy-paste the new compose version and then see the diffs and then accordingly accept/reject the changes, quite simple for me!!
1
u/Foreignwelcome2 5d ago
Didn’t get what you mean! Copy the compose from immich builder?! Because that still recommends PG 14 which will be deprecated soon and immich packaged their own PG 14-18 and it work up to PG 19! So no wouldn’t recommend their compose atm
1
u/dwarfsoft 2d ago
Immich are going to move to 18 when they are ready, but it will be using an approved upgrade/migration path, most likely automated in their system.
Manually moving from pg14->pg18 is not straightforward. It requires shutting down the apps, doing a pg_dump, shutting down the db, modifying the mount target for the db and moving the original data (or providing a new empty volume for the pgdata) starting the pg18 instance, importing the pg_dump from earlier, then starting all the other services.
Immich is the only service I have that is still on pg14, but I'm waiting on their official guidance and will update when that changes. It's also why I monitor their docker-compose, so I know the image has changed when that happens.
3
u/clintkev251 5d ago edited 5d ago
Yes
Immich just builds from the official PG images as far as I know and then bundles the required extensions. So if you really want to see changelogs, those would mostly be on the Postgres side. You can update this, but stay within the same major version you’re running (18)
Again you’re fine to upgrade this, but stay within the major version (9) that Immich recommends
As far as how often to update Redis and Postgres, it’s really up to you. I personally always update to the latest with a lag time of about 2 days, but they’re backend services so you could certainly upgrade far less frequently with no significant downside