This repository contains a Docker Compose File of apache-airflow for Docker's automated build published to the public Docker Hub Registry.
- Based on Python (3.6-slim-buster) official Image python:3.6-slim-buster and uses the official Postgres as backend and Redis as queue
- Install Docker
- Install Docker Compose
- Following the Airflow release from Python Package Index
Pull the image from the Docker repository.
docker pull apache/airflow:2.0.0
By default, docker-airflow runs Airflow with LocalExecutor :
docker-compose -f docker-compose.yml up -d
NB : If you want to have DAGs example loaded (default=False), you've to set the following environment variable :
AIRFLOW__CORE__LOAD_EXAMPLES
in docker-compose.yml
If you want to use Ad hoc query, make sure you've configured connections: Go to Admin -> Connections and Edit "postgres_default" set this values (equivalent to values in airflow.cfg/docker-compose*.yml) :
- Host : postgres
- Schema : airflow
- Login : postgres
- Password : postgres
Enjoy!