Airflow in a docker container by following the instructions outlined in Airflow Docker image extension quickstart and Running Airflow in Docker how to guide.
This repo should only be used to jump start a development enviornment or as a training method to become more familar with writing DAGs in Airflow.
Before starting Airflow for the first time, you need to prepare your environment, i.e. create the necessary files, directories and initialize the database.
- Create a
.env
file in the same directory as thecompose.yaml
file to add the Airflow specific Docker compose enviornmental variables.
On all operating systems, you need to run database migrations and create the first user account. To do this, run.
docker compose up airflow-init
After initialization is complete, you should see a message like this:
airflow-init_1 | Upgrades done
airflow-init_1 | Admin user airflow created
airflow-init_1 | 2.6.0
start_airflow-init_1 exited with code 0
Now you can start all services:
docker compose up