# Apache Airflow with Docker Compose examples **UPD from July 2020: Those articles was created before release of official Apache Airflow Docker image and they use puckel/docker-airflow. Now, already exist official image apache/airflow. So this docker-compose files became 'legacy' and all sources moved to 'docker_with_puckel_image'. Main Docker Compose Cluster based on apache/airflow Image** Docker-compose config based on official image (required docker-compose version 3.7 and higher): **[docker-compose-with-celery-executor.yml](docker-compose-with-celery-executor.yml)** And env file with config setting for Airflow (used in docker-compose-with-celery-executor.yml): **[.env](.env)** *UPGRADE UPPER 1.10.5 be AWARE:* You need to define 'default_pool' for task instances and set slots to it. About 1000, for example. This was not needed previous and default_poll was exist. But now you need to create it manually. So just go to UI, Admin -> Pools (http://localhost:8080/admin/pool/) and press *Create*. Create pool with name 'default_pool' and slots, for example 100 or 1000. Source files for article with description on Medium. **Apache Airflow with LocalExecutor:** **Apache Airflow with CeleryExecutor:** **Install Python dependencies to docker-compose cluster without re-build images** ![Main Apache Airflow UI](/docs/img/main.png?raw=true "Main Apache Airflow UI") ![Version](/docs/img/version.png?raw=true "Version Screen") ### From 21.07.2020: 1. Docker Compose files with puckel images moved to docker_with_puckel_image 2. Added docker-compose-with-celery.yml based on official image. ### 18.12.19 changes: 1. added samples for article https://medium.com/@xnuinside/install-python-dependencies-to-docker-compose-cluster-without-re-build-images-8c63a431e11c (docker-compose-volume-packages.yml, packages.pth, added commented lines to Dockerfile) 2. added .dockerignore ### 29.11.19 changes: 1. Apache Airflow Image was updated to version 1.10.6 2. Added test_dag into airflow_files