If you mount your local folders as volumes to Airlfow, you should make sure that you use your HOST_ID as user_id and GID=0 as user
echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env
/home/airflow/.local/lib/python3.7/site-packages/airflow/example_dags/
example DAGs locate in docker container
to disable future warming: FutureWarning: The auth_backends setting in [api] has had airflow.api.auth.backend.session added in the running config, which is needed by the UI. Please update your config before Apache Airflow 3.0
Add AIRFLOW__API__AUTH_BACKENDS: "airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session"
to docker-compose