-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
83 lines (77 loc) · 2.06 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '2'
services:
airflow_webserver:
image: airflow:github
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- db
- airflow_redis
- airflow_scheduler
environment:
SQLALCHEMY_DATABASE_URI: mysql://admin:testingtesting123@db:3306/airflow
REDIS_URI: redis://airflow_redis
FLOWER_HOST: 0.0.0.0
AIRFLOW_RUNAS_WEBSERVER: 1
entrypoint: ./wait-for-it.sh airflow_scheduler:8080 -- ./docker-entrypoint.sh
airflow_flower:
image: airflow:github
build:
context: .
dockerfile: Dockerfile
ports:
- "5555:5555"
depends_on:
- db
- airflow_redis
- airflow_scheduler
environment:
SQLALCHEMY_DATABASE_URI: mysql://admin:testingtesting123@db:3306/airflow
REDIS_URI: redis://airflow_redis
AIRFLOW_RUNAS_FLOWER: 1
FLOWER_HOST: 0.0.0.0
entrypoint: ./wait-for-it.sh airflow_scheduler:8080 -- ./docker-entrypoint.sh
airflow_scheduler:
image: airflow:github
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
- airflow_redis
environment:
SQLALCHEMY_DATABASE_URI: mysql://admin:testingtesting123@db:3306/airflow
REDIS_URI: redis://airflow_redis
FLOWER_HOST: 0.0.0.0
AIRFLOW_RUNAS_SCHEDULER: 1
entrypoint: ./wait-for-it.sh db:3306 -- ./docker-entrypoint.sh
airflow_worker:
image: airflow:github
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
- airflow_redis
- airflow_scheduler
environment:
SQLALCHEMY_DATABASE_URI: mysql://admin:testingtesting123@db:3306/airflow
REDIS_URI: redis://airflow_redis
FLOWER_HOST: 0.0.0.0
AIRFLOW_RUNAS_WORKER: 1
entrypoint: ./wait-for-it.sh airflow_scheduler:8080 -- ./docker-entrypoint.sh
airflow_redis:
image: redis:3.2
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: testingtesting123
MYSQL_DATABASE: airflow
MYSQL_USER: admin
MYSQL_PASSWORD: testingtesting123
MYSQL_PORT: 3306
ports:
- "3306:3306"