From b965b5acc647a804db48b58f0703b8fd113237af Mon Sep 17 00:00:00 2001 From: hdser Date: Fri, 8 Nov 2024 10:06:59 +0100 Subject: [PATCH] fix: _URL to _HOST --- .env.test | 2 +- docker-compose.yml | 2 +- macros/db/postgres_queries.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.test b/.env.test index 2914b3c..4130ffe 100644 --- a/.env.test +++ b/.env.test @@ -16,7 +16,7 @@ CLICKHOUSE_PROD_USER CLICKHOUSE_PROD_PASSWORD CLICKHOUSE_PROD_SECURE -POSTGRES_URL +POSTGRES_HOST POSTGRES_PORT POSTGRES_USER POSTGRES_PASSWORD \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c93a4af..3c07874 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,7 +28,7 @@ services: CLICKHOUSE_PROD_URL: ${CLICKHOUSE_PROD_URL} CLICKHOUSE_PROD_PORT: ${CLICKHOUSE_PROD_PORT} CLICKHOUSE_PROD_SECURE: ${CLICKHOUSE_PROD_SECURE} - POSTGRES_URL: ${POSTGRES_URL} + POSTGRES_HOST: ${POSTGRES_HOST} POSTGRES_PORT: ${POSTGRES_PORT} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} diff --git a/macros/db/postgres_queries.sql b/macros/db/postgres_queries.sql index f192221..6568be7 100644 --- a/macros/db/postgres_queries.sql +++ b/macros/db/postgres_queries.sql @@ -1,6 +1,6 @@ {% macro get_postgres(pg_db,table_name) %} postgresql( - '{{ env_var("POSTGRES_URL", "postgres") }}:{{ env_var("POSTGRES_PORT", "5432") }}', + '{{ env_var("POSTGRES_HOST", "postgres") }}:{{ env_var("POSTGRES_PORT", "5432") }}', '{{ pg_db }}', '{{ table_name }}', '{{ env_var("POSTGRES_USER") }}',