Reputation: 712
I am using puckel/docker-airflow to deploy airflow. Currently, the webserver is not asking for any credentials to login. How can I add a user to it? Maybe i have to add some environment variable in docker-compose.yml, but i am unable to find it. The docker-compose file is here
Thanks in advance.
Upvotes: 1
Views: 1518
Reputation: 1005
Create your own airflow.cfg (Assume it is stored in ./config/airflow.cfg
) and follow Airflow Security Guide to define credential.
Then, mount your config file to docker container can help you, add ./config/airflow.cfg:/usr/local/airflow/airflow.cfg
to your webserver
docker compose
Example:
volumes:
- ./dags:/usr/local/airflow/dags
- ./config/airflow.cfg:/usr/local/airflow/airflow.cfg
Upvotes: 2