mkdir -p /root/airflow
cd /root/airflow && mkdir -p ./dags ./logs ./plugins ./config
cd /root/airflow/
wget 'https://airflow.apache.org/docs/apache-airflow/2.10.4/docker-compose.yaml'
nano docker-compose.yaml
===================================
AIRFLOW__CORE__LOAD_EXAMPLES: 'false'
===================================
#初始化容器
docker compose up airflow-init
#启动
docker compose up -d
运行效果:
浏览器:
http://192.168.31.163:8080
默认账号: airflow
默认密码: airflow