Skip to content

ruanbekker/docker-apache-airflow

Repository files navigation

docker-apache-airflow

Apache Airflow using Docker Compose

Usage

Docker Compose

Im using the taskfile build tool to simplify usage. But running without taskfile,

To build the dependency image:

docker-compose -f deps.docker-compose.yml build

Once the airflow-dependencies:1.10.14 image is built, you can build the rest and start the containers:

docker-compose up --build -d

Taskfile

Im using the taskfile build tool to simplify usage.

To install on a mac:

brew install go-task/tap/go-task

To install on linux:

sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin

Then for help run:

task

task: Available tasks for this project:
* build: 	Builds airflow
* clean: 	Runs docker system prune -f --all
* default: 	Runs the help task
* down: 	Stops containers
* help: 	Runs the list tasks
* logs: 	Runs docker-compose logs -f
* run: 		Runs docker-compose up -d
* verify: 	Verify if docker is running

To build and start:

task build
task run

Endpoints

The default username is admin and the password is password but configurable on the environment variable AIRFLOW_ADMIN_PASSWORD.

Airflow:

Flower:

Screenshots

Airflow UI:

image

Graph View:

image

Flower Dashboard:

image

Detail about the worker:

image

Executed Tasks:

image

Broker:

image

Resources