forked from AMPATH/offline-pyspark-scripts
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.airflow.yaml
42 lines (40 loc) · 1.13 KB
/
docker-compose.airflow.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
38
39
40
41
version: '3.7'
services:
postgres:
image: postgres:9.6
container_name: postgres
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
logging:
options:
max-size: 10m
max-file: "3"
webserver:
image: puckel/docker-airflow:latest
container_name: airflow
restart: always
depends_on:
- postgres
environment:
- LOAD_EX=n
- EXECUTOR=Local
logging:
options:
max-size: 10m
max-file: "3"
volumes:
- ./airflow/dags:/usr/local/airflow/dags
- ./requirements.txt:/requirements.txt
- ./:/usr/local/airflow/spark-jobs
- ./airflow/logs:/usr/local/airflow/logs
ports:
- "8585:8080"
- "4040:4040"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3