forked from harmy/docker-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-LocalExecutor.yml
37 lines (35 loc) · 1.02 KB
/
docker-compose-LocalExecutor.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
version: '2'
services:
postgres:
image: postgres
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
webserver:
image: harmy/docker-airflow:latest
restart: always
depends_on:
- postgres
environment:
# - LOAD_EX=n
- EXECUTOR=Local
# - FERNET_KEY=9IoTgQ_EJ0hCsamBU3Mctc7F9OkODnndOKCwkwXCAA
# volumes:
# - /localpath/to/dags:/usr/local/airflow/dags
ports:
- "8080:8080"
command: webserver
scheduler:
image: harmy/docker-airflow:latest
restart: always
depends_on:
- webserver
# volumes:
# - ./requirements.txt:/requirements.txt:ro
# - /localpath/to/dags:/usr/local/airflow/dags
environment:
# - LOAD_EX=n
# - FERNET_KEY=9IoTgQ_EJ0hCsamBU3Mctc7F9OkODnndOKCwkwXCAA
- EXECUTOR=Local
command: scheduler -n 5