-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
168 lines (155 loc) · 3.23 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
version: "3"
networks:
dev:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450
services:
app:
build:
context: .
dockerfile: deploy/docker/Dockerfile.app
env_file:
- app.env
depends_on:
- mysql
networks:
- dev
restart: always
volumes:
- .:/opt/project
celery-worker:
build:
context: .
dockerfile: deploy/docker/Dockerfile.app
env_file:
- app.env
depends_on:
- mysql
- redis
networks:
- dev
restart: always
volumes:
- .:/opt/project
command: celery -A roboto.celery_app worker --loglevel=info --beat
jupyter:
build:
context: .
dockerfile: deploy/docker/Dockerfile.app
env_file:
- app.env
depends_on:
- mysql
networks:
- dev
restart: always
volumes:
- .:/opt/project
- ./deploy/jupyter/jupyter_notebook_config.json:/root/.jupyter/jupyter_notebook_config.json
command: ./manage.py shell_plus --notebook
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: roboto
MYSQL_PASSWORD: password
MYSQL_DATABASE: roboto
networks:
- dev
volumes:
- mysql-data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
redis:
image: redis
networks:
- dev
minio:
image: minio/minio
volumes:
- minio-data:/export
networks:
- dev
environment:
MINIO_ACCESS_KEY: development_minio_key
MINIO_SECRET_KEY: development_minio_secret
command: server /export
airflow-database:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: roboto
MYSQL_PASSWORD: password
MYSQL_DATABASE: airflow
networks:
- dev
volumes:
- airflow-mysql-data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
airflow-webserver:
build:
context: .
dockerfile: deploy/docker/Dockerfile.app
environment:
AIRFLOW_HOME: /opt/project/airflow_home
networks:
- dev
volumes:
- .:/opt/project
command: airflow webserver
ports:
- "8080:8080"
depends_on:
- airflow-database
- redis
airflow-scheduler:
build:
context: .
dockerfile: deploy/docker/Dockerfile.app
environment:
AIRFLOW_HOME: /opt/project/airflow_home
networks:
- dev
volumes:
- .:/opt/project
command: airflow scheduler
depends_on:
- airflow-database
- redis
airflow-worker:
build:
context: .
dockerfile: deploy/docker/Dockerfile.app
environment:
AIRFLOW_HOME: /opt/project/airflow_home
C_FORCE_ROOT: 1
networks:
- dev
volumes:
- .:/opt/project
command: airflow worker
depends_on:
- airflow-database
- redis
ports:
- "8793:8793"
nginx:
image: nginx
volumes:
- ./deploy/nginx/conf.d:/etc/nginx/conf.d
networks:
- dev
ports:
- "81:80"
depends_on:
- jupyter
# - app
volumes:
mysql-data:
driver: local
airflow-mysql-data:
driver: local
jupyter-config:
driver: local
minio-data:
driver: local