Giter VIP home page Giter VIP logo

airflow's Introduction

curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.9.0/docker-compose.yaml'

This file contains several service definitions:

  • airflow-scheduler - The scheduler monitors all tasks and DAGs, then triggers the task instances once their dependencies are complete.
  • airflow-webserver - The webserver is available at http://localhost:8080.
  • airflow-worker - The worker that executes the tasks given by the scheduler.
  • airflow-init - The initialization service.
  • flower - The flower app for monitoring the environment. It is available at http://localhost:5555.
  • postgres - The database.
  • redis - The redis - broker that forwards messages from scheduler to worker.
mkdir -p ./dags ./logs ./plugins ./config
echo -e "AIRFLOW_UID=$(id -u)" > .env

Initialize

docker-compose up airflow-init

The account created has the login airflow and the password airflow

Running Airflow

docker-compose up -d
docker-compose up -d flower
$ docker ps

CONTAINER ID   IMAGE                  COMMAND                  CREATED          STATUS                     PORTS                                                 NAMES
0042f521280b   apache/airflow:2.9.0   "/usr/bin/dumb-init …"   18 minutes ago   Up 3 minutes (healthy)     0.0.0.0:5555->5555/tcp, :::5555->5555/tcp, 8080/tcp   airflow-flower-1
0d021eb148b8   apache/airflow:2.9.0   "/usr/bin/dumb-init …"   24 minutes ago   Up 23 minutes (healthy)    0.0.0.0:8080->8080/tcp, :::8080->8080/tcp             airflow-airflow-webserver-1
83c4d204b107   apache/airflow:2.9.0   "/usr/bin/dumb-init …"   24 minutes ago   Up 23 minutes (healthy)    8080/tcp                                              airflow-airflow-worker-1
ccd5f4c8983b   apache/airflow:2.9.0   "/usr/bin/dumb-init …"   24 minutes ago   Up 23 minutes (healthy)    8080/tcp                                              airflow-airflow-scheduler-1
2a224d951dec   apache/airflow:2.9.0   "/usr/bin/dumb-init …"   24 minutes ago   Up 23 minutes (healthy)    8080/tcp                                              airflow-airflow-triggerer-1
33c1969d1d12   apache/airflow:2.9.0   "/bin/bash -c 'if [[…"   26 minutes ago   Exited (0) 3 minutes ago                                                         airflow-airflow-init-1
1ded58c5770f   postgres:13            "docker-entrypoint.s…"   26 minutes ago   Up 26 minutes (healthy)    5432/tcp                                              airflow-postgres-1
7687f414e699   redis:latest           "docker-entrypoint.s…"   26 minutes ago   Up 26 minutes (healthy)    6379/tcp                                              airflow-redis-1

Removing Airflow

docker-compose down --volumes --rmi all --remove-orphans
docker-compose down flower --volumes --rmi all --remove-orphans

Custom image

https://airflow.apache.org/docs/docker-stack/build.html#build-build-image

Plug-ins

https://airflow.apache.org/docs/apache-airflow/stable/extra-packages-ref.html https://airflow.apache.org/docs/apache-airflow-providers-jdbc/stable/operators.html

airflow's People

Contributors

rafaelscnunes avatar

Watchers

 avatar  avatar  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.