简体   繁体   English

从不同的文件夹运行 Airflow 和 docker-compose

[英]Run Airflow with docker-compose from a different folder

Using the docker-compose.yml from here and running docker-compose up I am able to run Airflow without problems (Ubuntu).这里使用docker-compose.yml并运行docker-compose up我可以毫无问题地运行 Airflow(Ubuntu)。 But this only works if the parent folder is named /airflow .但这仅在父文件夹命名为/airflow时才有效。 If it is named something else, the airflow-init service will fail:如果它被命名为其他名称,则airflow-init服务将失败:

ERROR: for airflow-init  Container "f28089f55f79" is unhealthy.
ERROR: Encountered errors while bringing up the project.

I want to be able to run Airflow using docker-compose up when my project lives in a different folder, eg: myproject/docker-compose.yaml当我的项目位于不同的文件夹中时,我希望能够使用docker-compose up运行 Airflow,例如: myproject/docker-compose.yaml

What should I do to make this work?我应该怎么做才能完成这项工作?

By checking Apache airflow page and the docs it says that $AIRFLOW_HOME by default is ~/airflow通过检查Apache airflow页面和文档,它说$AIRFLOW_HOME默认为~/airflow airflow

Just change this variable.只需更改此变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM