From 0e6d60e1650475d142781c6a46b84b2179f3e629 Mon Sep 17 00:00:00 2001 From: ITQ Date: Sat, 22 Nov 2025 01:20:14 +0300 Subject: [PATCH] feat: added pgvector Signed-off-by: ITQ --- compose.yaml | 8 +++++++- infrastructure/configs/backend/config.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 93ac88b..7d5074f 100644 --- a/compose.yaml +++ b/compose.yaml @@ -153,7 +153,7 @@ services: selinux: z postgres: - image: docker.io/postgres:17-alpine + image: docker.io/pgvector/pgvector:pg17-trixie env_file: - path: ./infrastructure/configs/postgres/.env.template required: true @@ -178,6 +178,12 @@ services: read_only: true bind: selinux: z + - type: bind + source: ./infrastructure/configs/postgres/init-db.sql + target: /docker-entrypoint-initdb.d/init-db.sql + read_only: true + bind: + selinux: z - type: volume source: postgres_data target: /var/lib/postgresql/data diff --git a/infrastructure/configs/backend/config.toml b/infrastructure/configs/backend/config.toml index 25f9d82..1b9e089 100644 --- a/infrastructure/configs/backend/config.toml +++ b/infrastructure/configs/backend/config.toml @@ -4,7 +4,7 @@ port = 8080 access_log = true [database] -url = "postgresql+psycopg://postgres:postgres@postgres:5432/postgres" +url = "postgresql+psycopg://postgres:postgres@postgres:5432/app" [access_token] crypto_key = "YlPGYA-WnyYW8Cd0bFZWPeZjPjfXhrD9P7ciCprYmmc="