diff --git a/airflow/docker_test.go b/airflow/docker_test.go index de73172a9..b4211c6e8 100644 --- a/airflow/docker_test.go +++ b/airflow/docker_test.go @@ -83,7 +83,7 @@ services: - postgres environment: AIRFLOW__CORE__EXECUTOR: LocalExecutor - AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://postgres:postgres@0.0.0.0:5432 + AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://postgres:postgres@postgres:5432 AIRFLOW__CORE__LOAD_EXAMPLES: "False" AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw=" volumes: @@ -115,7 +115,7 @@ services: - postgres environment: AIRFLOW__CORE__EXECUTOR: LocalExecutor - AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://postgres:postgres@0.0.0.0:5432 + AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://postgres:postgres@postgres:5432 AIRFLOW__CORE__LOAD_EXAMPLES: "False" AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw=" AIRFLOW__WEBSERVER__RBAC: "True" diff --git a/airflow/include/podconfigyml.go b/airflow/include/podconfigyml.go index dbd3824f1..ae93a1904 100644 --- a/airflow/include/podconfigyml.go +++ b/airflow/include/podconfigyml.go @@ -56,7 +56,7 @@ spec: - name: AIRFLOW_HOME value: /usr/local/airflow - name: AIRFLOW__CORE__SQL_ALCHEMY_CONN - value: postgresql://{{ .PostgresUser }}:{{ .PostgresPassword }}@{{ .PostgresHost }}:5432 + value: postgresql://{{ .PostgresUser }}:{{ .PostgresPassword }}@localhost:5432 - name: AIRFLOW__CORE__LOAD_EXAMPLES value: "False" - name: ASTRONOMER_USER @@ -125,7 +125,7 @@ spec: - name: AIRFLOW__CORE__FERNET_KEY value: d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw= - name: AIRFLOW__CORE__SQL_ALCHEMY_CONN - value: postgresql://{{ .PostgresUser }}:{{ .PostgresPassword }}@{{ .PostgresHost }}:5432 + value: postgresql://{{ .PostgresUser }}:{{ .PostgresPassword }}@localhost:5432 - name: AIRFLOW_SNOWFLAKE_PARTNER value: ASTRONOMER - name: AIRFLOW__CORE__LOAD_EXAMPLES diff --git a/config/config.go b/config/config.go index 6bb92e42a..5b9029c11 100644 --- a/config/config.go +++ b/config/config.go @@ -53,7 +53,7 @@ var ( LocalOrbit: newCfg("local.orbit", ""), PostgresUser: newCfg("postgres.user", "postgres"), PostgresPassword: newCfg("postgres.password", "postgres"), - PostgresHost: newCfg("postgres.host", "0.0.0.0"), + PostgresHost: newCfg("postgres.host", "postgres"), PostgresPort: newCfg("postgres.port", "5432"), ProjectDeployment: newCfg("project.deployment", ""), ProjectName: newCfg("project.name", ""),