Git Product home page Git Product logo

docker-airflow-2.0's Introduction

Docker Airflow 2.0

This repository contains Docker and Docker Compose files for building and running Apache Airflow 2.0 as described in our Medium article.

Overview

Docker Airflow 2.0 architecture

Requirements

Running

For simple usage and running with no additional dependencies use running with the official image. If additional configuration is needed use custom image running instructions below.

Official image

make run

Custom image

  • Configure Airflow running parameters (.env)
  • Configure Dockerfile-dev and docker-compose.dev.yml
  • Add dependencies in requirements.txt
make run-dev

Usage

Note: username and password can be configured in /scripts/entrypoint.sh

Configuring Airflow

It's possible to set any configuration value for Airflow from environment variables in .env file where we can set airflow running variables to override the default configuration that is generated as airflow.cfg file after the initial run.

The general rule is the environment variable should be named AIRFLOW__<section>__<key>, for example AIRFLOW__CORE__SQL_ALCHEMY_CONN sets the sql_alchemy_conn config option in the [core] section.

Check out the Airflow documentation for more details

You can also define connections via environment variables by prefixing them with AIRFLOW_CONN_ - for example AIRFLOW_CONN_POSTGRES_MASTER=postgres://user:password@localhost:5432/master for a connection called "postgres_master". The value is parsed as a URI. This will work for hooks etc, but won't show up in the "Ad-hoc Query" section unless an (empty) connection is also created in the DB

docker-airflow-2.0's People

Contributors

nikola-ai avatar vdragan1993 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.