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