1
votes

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.

1

1 Answers

2
votes

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