Skip to content

Commit

Permalink
Use env variables for Airflow default user
Browse files Browse the repository at this point in the history
  • Loading branch information
VMois committed Apr 1, 2024
1 parent cd467a8 commit d7469a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Expand Up @@ -146,8 +146,8 @@ services:
<<: *airflow-common-env
_AIRFLOW_DB_MIGRATE: 'true'
_AIRFLOW_WWW_USER_CREATE: 'true'
_AIRFLOW_WWW_USER_USERNAME: ${_AIRFLOW_WWW_USER_USERNAME:-airflow}
_AIRFLOW_WWW_USER_PASSWORD: ${_AIRFLOW_WWW_USER_PASSWORD:-airflow}
_AIRFLOW_WWW_USER_USERNAME: ${AIRFLOW_WWW_USER_USERNAME}
_AIRFLOW_WWW_USER_PASSWORD: ${AIRFLOW_WWW_USER_PASSWORD}
_PIP_ADDITIONAL_REQUIREMENTS: ''
user: "0:0"
volumes:
Expand Down
2 changes: 2 additions & 0 deletions example.env
@@ -1,3 +1,5 @@
POSTGRES_USER=salus
POSTGRES_PASSWORD=salus123
AIRFLOW_DB_NAME=airflow
AIRFLOW_WWW_USER_USERNAME=airflow
AIRFLOW_WWW_USER_PASSWORD=airflow

0 comments on commit d7469a5

Please sign in to comment.