-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-dependencies.yml
38 lines (36 loc) · 1.22 KB
/
docker-compose-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.1'
services:
postgres:
image: postgres:latest
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
webserver:
image: godatadriven/airflow:latest
environment:
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
- AIRFLOW__CORE__EXECUTOR=LocalExecutor
- WAIT_FOR=postgres:5432
depends_on:
- postgres
volumes:
- ./dags:/root/airflow/dags
- ./logs:/root/airflow/logs
- ./dependencies_example:/dependencies
ports:
- "8080:8080"
command: upgradedb_webserver
scheduler:
image: godatadriven/airflow:latest
environment:
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
- AIRFLOW__CORE__EXECUTOR=LocalExecutor
- WAIT_FOR=webserver:8080
depends_on:
- webserver
volumes:
- ./dags:/root/airflow/dags
- ./logs:/root/airflow/logs
- ./dependencies_example/:/dependencies
command: scheduler