From c7576ef7b838dbca384d13b19ca7b59c913aa167 Mon Sep 17 00:00:00 2001 From: chriswin Date: Mon, 20 Apr 2026 23:00:57 +0200 Subject: [PATCH] immich migration --- project/db/postgres/postgres.yml | 33 ++++++++++++++++++++++++++------ project/media/immich/immich.yml | 2 +- project/service/pdf/pdf.yml | 2 +- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/project/db/postgres/postgres.yml b/project/db/postgres/postgres.yml index 252f73e..63018e8 100644 --- a/project/db/postgres/postgres.yml +++ b/project/db/postgres/postgres.yml @@ -24,22 +24,43 @@ services: - ${DB_PATH}/postgres/data/postgres:/var/lib/postgresql/data - ${DB_PATH}/postgres/init/postgres:/docker-entrypoint-initdb.d - postgres-with-pg-vector: + # postgres-with-pg-vector: + # extends: + # file: ${TEMPLATES_PATH} + # service: default + # container_name: postgres-with-pg-vector + # image: tensorchord/pgvecto-rs:pg16-v0.3.0 + # ports: + # - 5433:5432 + # networks: + # - ip4net + # - ip6net + # secrets: [postgres_default_password] + # environment: + # POSTGRES_PASSWORD_FILE: /run/secrets/postgres_default_password + # # PGDATA: /var/lib/postgresql/data + # # see https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html + # PUID: 5050 + # PGID: 5050 + # volumes: + # - ${DB_PATH}/postgres/data/postgres-with-pg-vector:/var/lib/postgresql/data + # - ${DB_PATH}/postgres/init/postgres-with-pg-vector:/docker-entrypoint-initdb.d + # + postgres-vectorchord: extends: file: ${TEMPLATES_PATH} service: default - container_name: postgres-with-pg-vector - image: tensorchord/pgvecto-rs:pg16-v0.3.0 + container_name: postgres-vectorchord + image: ghcr.io/immich-app/postgres:16-vectorchord0.3.0-pgvectors0.3.0 ports: - - 5433:5432 + - 5434:5432 networks: - ip4net - ip6net secrets: [postgres_default_password] environment: + POSTGRES_USER: postgres POSTGRES_PASSWORD_FILE: /run/secrets/postgres_default_password - # PGDATA: /var/lib/postgresql/data - # see https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html PUID: 5050 PGID: 5050 volumes: diff --git a/project/media/immich/immich.yml b/project/media/immich/immich.yml index 1a4d7d0..8126af8 100644 --- a/project/media/immich/immich.yml +++ b/project/media/immich/immich.yml @@ -7,7 +7,7 @@ services: image: ghcr.io/immich-app/immich-server:v2.6.3 environment: DB_PASSWORD: ${IMMICH_DB_PASSWORD} - DB_HOSTNAME: postgres-with-pg-vector + DB_HOSTNAME: postgres-vectorchord DB_USERNAME: immich DB_DATABASE_NAME: immich REDIS_HOSTNAME: redis diff --git a/project/service/pdf/pdf.yml b/project/service/pdf/pdf.yml index 244fad8..f38b28e 100644 --- a/project/service/pdf/pdf.yml +++ b/project/service/pdf/pdf.yml @@ -3,7 +3,7 @@ services: extends: file: ${TEMPLATES_PATH} service: default - image: ghcr.io/alam00000/bentopdf-simple:2.8.1 + image: ghcr.io/alam00000/bentopdf-simple:2.7.0 container_name: pdf ports: - "4003:8080"