Official Apache Airflow local docker compose setup
Airflow Official documentation for docker compose deployment
- Clone repo
git clone https://github.com/datafuel/airflow_docker.git
- Run
cd airflow_docker
- Run
echo -e "AIRFLOW_UID=$(id -u)" > .env
(only on first use) - Run
cd docker_build
and rundocker compose build
- Run
cd ..
and rundocker-compose -f datafuel.docker-compose.yml up airflow-init
(only on first use) - Run
docker compose -f datafuel.docker-compose.yml up
then access airflow on http://localhost:8080
- Airflow username : airflow
- Airflow password : airflow
- Add your libraries to the /docker_build/requirements.txt file
- Run
cd docker_build
and rundocker compose build
to rebuild the datafuel/airflow docker image - Your python libraries are now added to the datafuel/airflow docker image