Skip to content

Commit

Permalink
fixed postgres host for docker airflow setup (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
neel-astro committed Dec 21, 2021
1 parent 545e76c commit 226ab7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions airflow/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions airflow/include/podconfigyml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", ""),
Expand Down

0 comments on commit 226ab7b

Please sign in to comment.