Skip to content

DockerΒΆ

The bundled docker-compose.yaml is for local development. It starts Airflow (apiserver, scheduler, dag-processor, triggerer, init), PostgreSQL, MongoDB, and Neo4j.

mkdir -p logs config data/tmp_openai_batches
docker compose up airflow-init
docker compose up -d

Useful commands:

docker compose ps
docker compose logs -f airflow-scheduler
docker compose logs -f airflow-triggerer
docker compose restart airflow-scheduler airflow-dag-processor
docker compose down          # stop stack
docker compose down -v       # stop + delete DB volumes (destructive)

Production hardening

Do not expose this Compose file as a public production stack without tightening passwords, TLS, and network exposure. Hosted deploys use GitLab CI to copy a production .env and run scripts/deploy.sh on the VM.

Set AIRFLOW_UID=$(id -u) so log files are writable. Permission errors on logs/ almost always mean the UID is wrong; re-run airflow-init after fixing it.