Skip to content

A simple Apache Airflow environment using Docker and Docker Compose.

License

Notifications You must be signed in to change notification settings

ymasaoka/docker-airflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-airflow

A simple Apache Airflow environment using Docker and Docker Compose.

Environment construction procedure

  1. Clone this repository to a directory of your choice.
  2. Move to the docker-airflow directory
  3. Switch branches according to the repository DB type
    • SQLite: Use the main branch
    • PostgreSQL: Use the repos-postgres branch
    • MySQL: Use the repos-mysql branch
  4. Change the command in the webserver container to db init
  5. Run docker-compose up to initialize the DB and exit with Ctrl + C when complete
  6. Change the command in the webserver container to webserver
  7. Run docker-compose up -d
  8. Create an Airflow admin user
  9. Access http://127.0.0.1:8080 with a web browser and log in to Airflow

Creating an admin user

You can create a user by running the Airflow CLI in the webserver container as shown below.

docker-compose run --rm webserver airflow users create \
    --username admin \
    --firstname Peter \
    --lastname Parker \
    --role Admin \
    --email spiderman@superhero.org

For more information on the command, see the official Apache Airflow documentation.

About

A simple Apache Airflow environment using Docker and Docker Compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published