forked from annarailton/docker-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.37 KB
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
# LocalExecutor
version: '2.1'
services:
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
webserver:
image: annarailton/airflow-codeql-js-py
restart: always
depends_on:
- postgres
environment:
- LOAD_EX=n
- EXECUTOR=Local
# the following will override defaults in airflow.cfg
# so we can run `airflow` commands later
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
- AIRFLOW__CORE__EXECUTOR=LocalExecutor
- AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION=False
- AIRFLOW__WEBSERVER__DAG_ORIENTATION=TB
- AIRFLOW__WEBSERVER__DAG_DEFAULT_VIEW=graph
volumes:
- ./dags:/usr/local/airflow/dags
- ./ql:/usr/local/airflow/ql
- ./data:/usr/local/airflow/data
ports:
- "8081:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3