This repo contains Docker Compose snippets for using Airflow with external Databases and with different brokers.
Setup Database Documentation - https://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html
Configuration Reference - https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html
Airflow needs to run initial migrations in order to setup Database for operations.
- git clone https://github.com/OpsComb/Airflow-Compose.git
- Run
docker-compose up
- Open this url on your browser -> 127.0.0.1:8080
- Login using -> username - airflow-user , password - airflow-pass
Note: docker-compose file at root is not recommended for production use cases
- Head over to mysql(or postgres) depending upon the database service used.
- Replace the placeholders (database host, user, password) with relevant values.
- Run
docker-compose up