Upgrade Postgres from 14 to 17 (#8)

This commit is contained in:
2025-05-24 10:39:55 +00:00
parent 17a992a3b6
commit cc8fb5495e

View File

@ -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,7 +32,6 @@ 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
@ -58,9 +57,9 @@ services:
networks:
- internal
db:
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvector0.8.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,
@ -73,7 +72,7 @@ services:
start_interval: 30s
start_period: 5m
volumes:
- db:/var/lib/postgresql/data
- db_pg17:/var/lib/postgresql/data
networks:
- internal
environment:
@ -91,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: