forked from mozilla/telemetry-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (71 loc) · 1.54 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
version: '2'
services:
db:
image: mysql:5.7
ports:
- '3306:3306'
command: ['--explicit_defaults_for_timestamp=1']
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: airflow
redis:
image: redis:3.2
app:
build:
context: .
dockerfile: Dockerfile.dev
restart: "no"
volumes:
- $PWD:/app
command: "true"
# Environment variables, exports, and substitution:
# https://docs.docker.com/compose/environment-variables/
# Setting connection strings from environment variables:
# https://airflow.apache.org/howto/connection/index.html#creating-a-connection-with-environment-variables
# Non-intuitive quoting behavior in docker-compose due to list syntax and yaml parsing:
# https://github.com/docker/compose/issues/2854#issuecomment-433592364
environment:
- AWS_SECRET_ACCESS_KEY
- AWS_ACCESS_KEY_ID
- DB_TOKEN
web:
extends:
service: app
restart: always
ports:
- "8000:8000"
depends_on:
- app
links:
- db
- redis
command: web
worker:
extends:
service: app
restart: always
mem_limit: 4294967296
ports:
- "8793:8793"
links:
- db
- redis
command: worker
scheduler:
mem_limit: 4294967296
extends:
service: app
restart: always
links:
- db
- redis
command: scheduler
flower:
extends:
service: app
restart: always
ports:
- "5555:5555"
links:
- redis
command: flower