r/immich • • 4d 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

5 Upvotes

25 comments sorted by

3

u/clintkev251 4d ago edited 4d ago
  1. Yes
  2. 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)
  3. 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

2

u/Friendly_Potential69 4d ago

And where do you see we need version 18??
In the official documentation (https://docs.immich.app/install/docker-compose), it's a link to a docker-compose clearly showing V14:

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23

2

u/Foreignwelcome2 4d ago

Yeah I know seems like there compose builder is outdated! But in a section where there’s info about runing your own external postgreSQL it mentions it support 18 also in the link I provided of immich base image repo on GitHub you can see they releasing Postgres 18 packages and also upgrade packages!!!

Not a fan of the lack of documentation and the lack of straight forward documentation

1

u/Friendly_Potential69 4d ago

ON the link you gave I have a file with https://github.com/immich-app/base-images/tree/main/postgres this info:;
-build-arg="PG_MAJOR=17" --build-arg="PGVECTOR_TAG=0.8.0" --build-arg="VECTORCHORD_TAG=0.3.0"
Then inside the docker-compose it says PG_MAJOR: 16

VECTORCHORD_TAG: 0.3.0

PGVECTOR_TAG: 0.8.0

PGVECTORS_TAG: 0.3.0

2

u/Foreignwelcome2 4d ago

Yeah that’s the read me in immich base image repo in Postgres just click on packages and you’ll find there released packages with its label, tag and digest

0

u/Friendly_Potential69 4d ago

Yes but you saw that it says PG major version 17, and on the actual file PG major 16...
And on the other docker-compose, pG14 (which seems rather old), and now there is a "BASE IMAGE" saying PG 18...

2

u/Foreignwelcome2 4d ago

As from the doc link provided by clintkev you will see they mention immich support PG 14-19 so any of these work with immcih and the base image immcih just build and bundles the PG and release it so you can use that without building or running an external postgreSQL!
So whatever PG version you have that’s the one you update but in case of an upgrade 17-18 you need to follow migration guide! And if your immich is new id make a new one with PG 18 or just backup and upgrade and check the logs and function for any errors

1

u/Great-Cow7256 4d ago

don't try 19. There is no reason to, there's no benefit over 18 at this point, and immich doesn't make a postgres 19 image packaged with its special sauce. stick with 18. it doesnt EOL for like 3 more years.

0

u/Friendly_Potential69 4d ago

Oops v19 also supported? too bad I went with the PG18...

Here are my images tags from my docker-compose, as per today 22/11/2026:
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}

image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}

image: docker.io/valkey/valkey:9.2.0@sha256:1c2b25b09f354c66fe994733acdf12fcfd4bdf6f3bd92b88a93a70378d884056

image: ghcr.io/immich-app/postgres:18-vectorchord1.1.1-pgvector0.8.7@sha256:f7388adc1e3414800a71506528917f4f5615249f5fe7a872b1e1431e01b72ad7

I think that's also the latest "valkey" as per today...

I did have to migrate the DB as I had some api keys and I was lazy to recreate, from PG14 to PG18, it worked.

I tested, logged in, uploaded new picture, checked before/after db migration for my total pictures, stats, etc... all fine.

Only thing not working for my setup is thumbnails on immich android app, but thats a completely separate topic, unrelated to generate thumbnails, and that was already problematic prior to the migration and updates... All thumbnails works on browser, as it was working in the past. My issue is something with zitadel or traeffik, I won't look into it for now.

1

u/Friendly_Potential69 4d ago

Hm... Stramge because the immich itself is not outdated, neither is valkey (v9)... Also your link gives me a 404 (tje postgres one) but I will check it now on github...

4

u/clintkev251 4d ago

I didn’t say you need 18 (though if you’re starting today that’s certainly what I would recommend). OP said they’re already running 18

2

u/Friendly_Potential69 4d ago

I'm not trying to blame or use your words, I'm trying to understand "how are we supposed to know we need versions 18 (or version whatever)..."?

My immich is new I have no real data, so if I can update to proper version then I will, but its a complete mess in that regards (see my other comments on this topic for facts).

3

u/clintkev251 4d ago

If you’re unsure, you should just run exactly what’s in the example compose. That’s what Immich recommends today. I just personally don’t recommend starting with 14 as it’s about to be deprecated and you’d rather soon need to migrate to a newer version anyway. Immich documents compatibility with PG 14-19 here

https://docs.immich.app/administration/postgres-standalone/

1

u/Friendly_Potential69 4d ago

But there is no recommended version that is the thing, we already saw 3 different major versions of PG in several official docker-comnpose in the official repo...
Even more, what is this alleged BASE image: postgres 18-vectorchord1.1.1-pgvector0.8.7-upgrade (source: https://github.com/immich-app/base-images/pkgs/container/postgres ) then? I mean it's the recommended or base image?

2

u/clintkev251 4d ago

The recommended version is the one in the official compose file

https://github.com/immich-app/immich/blob/main/docker/docker-compose.yml

And no offense but the base image you’re pointing out is just a case of you not knowing how to use GitHub. There are tags for every supported major version in there

0

u/Friendly_Potential69 4d ago

Yes I don't exactly understand github, no offense taken (albeit, I can understand basic English language and the meaning of a "base" image...);

I also find rather confusing that the official compose file, refers a almost outaded version while there are many other major updates versions in numerous parts of the official documentation (V16, V17, V18... here and then).

So the file you are referring to was my reference (although it would have not killed anyone to clearly document that in the readme.md):
container_name: immich_postgres

image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23

Still, while it's "recommended" as per your terms, it's *almost* misleading because we know there are much newer compatible versions (using Immich documentation terms) that won't required any migrations or advanced steps (steps that I am capable of doing but that should be irrelevant when starting new as you also said).

So I appreciate your comments, I won't bother any further to discuss because I made my own conclusion a while ago (I was trying to hint about the current state of things, but nevermind): It's *bollocks*...

I will take liberties, due to the absence of *clear* guidelines, to take base images of my choice, and move on. Quite likely that will lead to pollution when/if I will report bugs on a bit of a frankestein system, but that is the consequence(s) of not being capable to suggest a simple, recent recommendation.

OK thanks again, I'm going to make some updates now.

1

u/Foreignwelcome2 4d ago

thanks! if you can give me more what you recommend or what you do!

2- how often do i update it (even within the same version 18?), also when for example theres an upgrade to pgSQL 19 would immich release a note and a guide on upgrade?

3- if major version i.e 10 is released will immich release a note or guide for upgrading? or should i check with Valkey repo? (Also where does immich recommend redis versions couldn't find it in the docs?)

thamk you!!

2

u/clintkev251 4d ago

2. Up to you. I usually update within a couple days of a new version being released, but you could get away with doing it less frequently as well. Immich would likely release a migration guide or at least endorse one for any major version migrations

3. Traditionally there have not been manual steps required to upgrade redis (Valkey) major versions. The primary documentation for what versions Immich officially recommends is just the published compose files

1

u/Foreignwelcome2 4d ago

Thank you 🙏

2

u/Friendly_Potential69 4d ago

I had/have the same struggle everytime, why there is no easy recommended dependencies for each versions of immich?

1

u/dwarfsoft 1d 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:

  1. Stop the stack
  2. Snapshot the underlying storage and back up
  3. Modify image tags
  4. Redeploy

1

u/OkSeaweed1121 21h 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 4d 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 4d 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 1d 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.