-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
64 lines (61 loc) · 1.96 KB
/
docker-compose.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '2.1'
services:
postgres:
image: postgres:11-alpine
ports:
- "5432:5432"
environment:
PGPASSWORD: "airflow"
PGUSER: "airflow"
POSTGRES_PASSWORD: "airflow"
POSTGRES_USER: "airflow"
POSTGRES_DB: "airflow"
webserver:
image: mastak/airflow:${AIRFLOW_VERSION:-2.1.2}
restart: always
depends_on:
- postgres
environment:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
AIRFLOW__CORE__FERNET_KEY: "bQTDKdE-_fd7hWhyjjO18_HWNtAEGOTzqWg4WN8Cpvo="
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: airflow
AIRFLOW__CORE__EXECUTOR: LocalExecutor
volumes:
- ./examples:/usr/local/airflow/dags
- ./airflow_multi_dagrun:/usr/local/airflow/plugins/airflow_multi_dagrun
ports:
- "8080:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
scheduler:
image: mastak/airflow:${AIRFLOW_VERSION:-2.1.2}
restart: always
depends_on:
- postgres
- webserver
volumes:
- ./examples:/usr/local/airflow/dags
- ./airflow_multi_dagrun:/usr/local/airflow/plugins/airflow_multi_dagrun
- ./logs:/usr/local/airflow/logs
ports:
- "8793:8793"
environment:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
AIRFLOW__CORE__FERNET_KEY: "bQTDKdE-_fd7hWhyjjO18_HWNtAEGOTzqWg4WN8Cpvo="
AIRFLOW__CORE__HOSTNAME_CALLABLE: "airflow.utils.net.get_host_ip_address"
AIRFLOW__API__AUTH_BACKEND: "airflow.api.auth.backend.basic_auth"
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: airflow
AIRFLOW__CORE__EXECUTOR: LocalExecutor
command: scheduler