3 Commits

Author SHA1 Message Date
c100225f04 Remove old pg database container 2025-05-24 12:37:38 +02:00
cf5872eca3 Change db host 2025-05-24 12:29:48 +02:00
93150679ab Include new postgres container and temporary volume 2025-05-24 12:19:25 +02:00

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
@ -31,7 +31,6 @@ services:
- db_name
- db_user
- db_pass
machine-learning:
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
@ -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: