forked from wmorin/docker-airflow-1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-LocalExecutor.yml
39 lines (37 loc) · 1.09 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
version: '2.1'
services:
mysql:
image: mysql:5.7
command: ["mysqld", "--character-set-server=utf8", "--collation-server=utf8_unicode_ci", "--explicit_defaults_for_timestamp"]
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=airflow
- MYSQL_PASSWORD=airflow
- MYSQL_DATABASE=airflow
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
webserver:
image: kysnm/docker-airflow:1.10.2
restart: always
depends_on:
- mysql
environment:
- LOAD_EX=n
- EXECUTOR=Local
volumes:
- ./dags:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
ports:
- "8080:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
volumes:
mysql-data:
driver: local