Run Airflow with docker-compose from a different folder

Viewed 250

Using the docker-compose.yml from here and running docker-compose up I am able to run Airflow without problems (Ubuntu). But this only works if the parent folder is named /airflow. If it is named something else, the airflow-init service will fail:

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, e.g.: myproject/docker-compose.yaml

What should I do to make this work?

1 Answers

By checking Apache airflow page and the docs it says that $AIRFLOW_HOME by default is ~/airflow

Just change this variable.

Related