7 Commits

Author SHA1 Message Date
1d4cff2abf Update immich to v1.134.0 2025-05-28 00:02:56 +00:00
cc8fb5495e Upgrade Postgres from 14 to 17 (#8) 2025-05-24 10:39:55 +00:00
17a992a3b6 Postgres: remove pgvecto.rs & explicitly state pgvector version
pgvecto.rs only needed to be available during migration
2025-05-24 12:04:13 +02:00
938f0c00c6 Add matchPackageNames rule for postgres 2025-05-24 11:52:57 +02:00
f4b19d111c Reintroduce healthcheck for database
While the new image (ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0) includes a healthcheck now, it only considers POSTGRES_DB and POSTGRES_USER, not POSTGRES_DB_FILE and POSTGRES_USER_FILE used with docker secrets
2025-05-23 23:28:35 +02:00
9a52f5f239 Update ghcr.io/immich-app/immich-server Docker tag to v1.133.1 2025-05-23 23:18:56 +02:00
afcd9dbfa5 Migrate from redis to valkey 2025-05-23 23:17:49 +02:00
2 changed files with 26 additions and 13 deletions

View File

@ -2,7 +2,7 @@ name: immich
services:
server:
image: ghcr.io/immich-app/immich-server:v1.133.0
image: ghcr.io/immich-app/immich-server:v1.134.0
container_name: immich_server
# extends:
# file: hwaccel.transcoding.yml
@ -10,7 +10,7 @@ services:
user: 10002:10002
depends_on:
- redis
- db
- db_pg17
restart: unless-stopped
healthcheck:
disable: false
@ -23,7 +23,7 @@ services:
- internal
- proxy
environment:
DB_HOSTNAME: db
DB_HOSTNAME: db_pg17
DB_DATABASE_NAME_FILE: /run/secrets/db_name
DB_USERNAME_FILE: /run/secrets/db_user
DB_PASSWORD_FILE: /run/secrets/db_pass
@ -32,11 +32,10 @@ services:
- db_user
- db_pass
machine-learning:
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:v1.133.0
image: ghcr.io/immich-app/immich-machine-learning:v1.134.0
container_name: immich_machine_learning
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
@ -51,19 +50,29 @@ services:
redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:148bb5411c184abd288d9aaed139c98123eeb8824c5d3fce03cf721db58066d8
image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884
restart: unless-stopped
healthcheck:
test: redis-cli ping || exit 1
networks:
- internal
db:
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0
container_name: immich_db_pg14
db_pg17:
image: ghcr.io/immich-app/postgres:17-vectorchord0.3.0-pgvector0.8.0
container_name: immich_db_pg17
restart: unless-stopped
healthcheck:
test: [ CMD-SHELL,
"pg_isready -d `cat $$POSTGRES_DB_FILE` -U `cat $$POSTGRES_USER_FILE` || exit 1;",
"Chksum=$$(psql -d `cat $$POSTGRES_DB_FILE` -U `cat $$POSTGRES_USER_FILE` --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database');",
"echo 'checksum failure count is $$Chksum';",
"[[ $$Chksum = '0' ]] || exit 1"
]
interval: 5m
start_interval: 30s
start_period: 5m
volumes:
- db:/var/lib/postgresql/data
- db_pg17:/var/lib/postgresql/data
networks:
- internal
environment:
@ -81,8 +90,8 @@ services:
volumes:
model-cache:
name: immich_model_cache
db:
name: immich_db
db_pg17:
name: immich_db_pg17
photos:
name: immich_photos
driver_opts:

View File

@ -11,7 +11,11 @@
"groupName": "immich"
},
{
"matchPackageNames": "docker.io/redis",
"matchPackageNames": ["/postgres/"],
"groupName": "database"
},
{
"matchPackageNames": "docker.io/valkey/valkey",
"enabled": false
}
]