mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
33 lines
717 B
Markdown
33 lines
717 B
Markdown
airflow
|
|
=======
|
|
|
|
## 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
|
|
```
|