forked from puckel/docker-airflow
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose-LocalExecutor.yml
42 lines (41 loc) · 1.13 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
38
39
40
41
42
version: '3.8'
services:
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
env_file:
- secrets/postgres.env
logging:
options:
max-size: 10m
max-file: "3"
webserver:
image: ednarb29/docker-airflow:2.2.3
restart: always
depends_on:
- postgres
environment:
- LOAD_EX=n
- EXECUTOR=Local
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
env_file:
- secrets/fernet_key.env
- secrets/postgres.env
logging:
options:
max-size: 10m
max-file: "3"
volumes:
- "./dags:${AIRFLOW_DAG_DIR}"
# - "./plugins:${AIRFLOW_PLUGINS_DIR}"
ports:
- "8080:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3