Giter VIP home page Giter VIP logo

airflow-docker's Introduction

airflow-docker

This repository contains the docker-compose file for automated execution of a set of tasks, the mysql init script, and python scripts for DAGs to execute these tasks.

To run airflow in docker with mysql as backend

  1. If you don't have Docker Desktop Application, download it from here.
  2. Clone this repo and run docker-compose as follows:
docker-compose up -d

Here the -d flag indicates detached mode. In this mode containers run in the background.

  1. You should be able to see the running containers with the command below.
docker ps
  1. In order to launch the airflow webserver, go to localhost:8080. Credentials are both kartaca. There you can see the DAGs.
  2. You can use any database tool you want to connect to the database. (I suggest DBeaver.) Database, username and password fields must be filled as kartaca and port must be set to 3306 in order to establish the connection.
  3. Triggered DAGs will cause changes in the database tables.

Note: If port 3306 is in use, you can make the following modifications in the code:

  • Change services -> mysql -> ports to 3307:3306 from 3306:3306 in the docker-compose file.
  • Change the connection ports in python scripts under the dags folder to 3307 from 3306.
  • When making a database connection via a database tool, enter the port as 3307 instead of 3306.

airflow-docker's People

Contributors

kostanya avatar

Watchers

 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.