This is an Airflow building document for local provisioning when we want to develop or testing.
Support Versions:
| Package | Version | Component |
|---|
./script/setup.shWarning
For the Airflow3, you should set AIRFLOW__API_AUTH__JWT_SECRET in the dotenv
file before start because it needs this value.
Build only Docker image (Optional):
docker build --rm \
--build-arg AIRFLOW_VERSION="2.7.1" \
--build-arg PYTHON_VERSION="3.10" \
-f ./.container/base.Dockerfile \
-t airflow-local \
.Start provision Airflow application via Docker Compose file.
-
Create receive password file for standalone mode.
touch ./standalone_admin_password.txt
-
Start provision Airflow Standalone:
docker compose -f ./.container/docker-compose-local-standalone.base.yml --env-file .env up -d
-
User & Password will show on the Docker Container console.
-
After finish, Down Airflow Standalone:
docker compose -f ./.container/docker-compose-local-standalone.base.yml --env-file .env down --rmi all
Does not set yet.
Does not set yet.