-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yaml
37 lines (36 loc) · 1.16 KB
/
docker-compose.yaml
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:9.6
restart: always
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
# volumes:
# - ./airflow/db:/var/lib/postgresql/data
airflow:
build:
context: ./airflow
restart: always
depends_on:
- postgres
environment:
- LOAD_EX=n
- EXECUTOR=Local
volumes:
- ./airflow/dags:/usr/local/airflow/dags
- ./etl-scripts:/usr/local/airflow/etl-scripts:ro
- ./airflow/email-templates/:/usr/local/airflow/email-templates
- ./airflow/config/airflow.cfg:/usr/local/airflow/airflow.cfg
# - ./jars:/usr/local/airflow/spark-jars:ro
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
ports:
- 8092:8080
command: webserver
#healthcheck:
# test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
# interval: 30s
# timeout: 30s
# retries: 3