From 884a536320c08ea5ce264fb7f8ce590ebe928dc1 Mon Sep 17 00:00:00 2001 From: AlexBelyan Date: Sat, 23 May 2026 19:26:59 +0300 Subject: [PATCH] fixed connection string in configs --- infra/k8s/configmap.yaml | 2 +- infra/postgres/Dockerfile | 1 + .../{init => migrations}/001-create-pg-cron-extension.sql | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename infra/postgres/{init => migrations}/001-create-pg-cron-extension.sql (100%) diff --git a/infra/k8s/configmap.yaml b/infra/k8s/configmap.yaml index 4c2dad8..02e5f3d 100644 --- a/infra/k8s/configmap.yaml +++ b/infra/k8s/configmap.yaml @@ -5,7 +5,7 @@ metadata: namespace: family-hub data: DB_HOST: postgres - DB_PORT: "6432" + DB_PORT: "5432" DB_NAME: familyHubDB DB_USER: familyUser API_PORT: "8000" diff --git a/infra/postgres/Dockerfile b/infra/postgres/Dockerfile index 1ebcdc4..01f8a66 100644 --- a/infra/postgres/Dockerfile +++ b/infra/postgres/Dockerfile @@ -3,3 +3,4 @@ FROM postgres:16 RUN apt-get update \ && apt-get install -y --no-install-recommends postgresql-16-cron \ && rm -rf /var/lib/apt/lists/* +COPY infra/postgres/migrations/ /docker-entrypoint-initdb.d/ \ No newline at end of file diff --git a/infra/postgres/init/001-create-pg-cron-extension.sql b/infra/postgres/migrations/001-create-pg-cron-extension.sql similarity index 100% rename from infra/postgres/init/001-create-pg-cron-extension.sql rename to infra/postgres/migrations/001-create-pg-cron-extension.sql