1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/airflow/README.md

33 lines
717 B
Markdown
Raw Normal View History

2018-07-25 11:57:33 +02:00
airflow
=======
2018-07-25 12:37:35 +02:00
## How It Works
```
+---------+
+--> | Worker1 |
redis | +---------+
postgres |
+--------+ | +---------+
| Master | <--+--> | Worker2 |
+--------+ | +---------+
webserver |
scheduler | +---------+
flower +--> | Worker3 |
+---------+
```
## Quick Start
```bash
# On Master
$ docker-compose up -d
$ chmod 777 data/airflow/dags
$ docker-compose exec webserver cp -r /usr/local/lib/python3.6/site-packages/airflow/example_dags dags
# On Workers
$ docker-compose up -d
$ chmod 777 data/airflow/dags
$ docker-compose exec worker cp -r /usr/local/lib/python3.6/site-packages/airflow/example_dags dags
```