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") }}',