-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
230 lines (205 loc) · 5.5 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
version: "3"
services:
#############
# Webserver #
#############
nginx:
image: nginx
ports:
- 80:80
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/nginx.conf:/etc/nginx.conf
#############
# Databases #
#############
mariadb:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=user
- MYSQL_PASSWORD=password
ports:
- 3306:3306
volumes:
- ./.docker_volumes/mariadb:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- mariadb
ports:
- 8081:80
environment:
- PMA_HOST=mariadb
- MYSQL_ROOT_PASSWORD=password
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
volumes:
- ./.docker_volumes/postgres:/var/lib/postgresql/data/
phppgadmin:
image: dockage/phppgadmin:latest
ports:
- 8082:80
environment:
- PHP_PG_ADMIN_SERVER_DESC=PostgreSQL
- PHP_PG_ADMIN_SERVER_HOST=postgres
- PHP_PG_ADMIN_SERVER_PORT=5432
- PHP_PG_ADMIN_SERVER_SSL_MODE=allow
- PHP_PG_ADMIN_SERVER_PG_DUMP_PATH=/usr/bin/pg_dump
- PHP_PG_ADMIN_SERVER_PG_DUMPALL_PATH=/usr/bin/pg_dumpall
###########
# Jupyter #
###########
jupyter:
image: jupyter/datascience-notebook:latest
ports:
- 8888:8888
volumes:
- ./notebooks:/home/jovyan/notebooks
###############################
# Doccano Labelling Interface #
###############################
doccano:
image: chakkiworks/doccano
environment:
- ADMIN_USERNAME=admin
- ADMIN_EMAIL=admin@example.com
- ADMIN_PASSWORD=password
- DATABASE_URL=postgres://doccano:doccano@doccano-postgres:5432/doccano?sslmode=disable
ports:
- 8000:8000
depends_on:
- doccano-postgres
doccano-postgres:
image: postgres:9.6
environment:
POSTGRES_USER: "doccano"
POSTGRES_PASSWORD: "doccano"
POSTGRES_DB: "doccano"
volumes:
- ./.docker_volumes/doccano-postgres:/var/lib/postgresql/data/
############
# Metabase #
############
metabase:
image: metabase/metabase:latest
ports:
- 3000:3000
depends_on:
- metabase-postgres
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=user
- MB_DB_PASS=password
- MB_DB_HOST=metabase-postgres
metabase-postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=user
- POSTGRES_DB=metabase
volumes:
- ./.docker_volumes/metabase-postgres:/var/lib/postgresql/data/
###########
# Airflow #
###########
airflow-redis:
image: 'redis:3.2.7'
# command: redis-server --requirepass redispass
airflow-postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
volumes:
- ./.docker_volumes/airflow-postgres:/var/lib/postgresql/data/
airflow-webserver:
image: puckel/docker-airflow:1.10.3
depends_on:
- airflow-postgres
- airflow-redis
environment:
- LOAD_EX=n
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
- EXECUTOR=Celery
- POSTGRES_HOST=airflow-postgres
- REDIS_HOST=airflow-redis
- PYTHONPATH=/code
# - POSTGRES_USER=airflow
# - POSTGRES_PASSWORD=airflow
# - POSTGRES_DB=airflow
# - REDIS_PASSWORD=redispass
volumes:
- ./dags:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
- ./src:/code/src/
ports:
- "8080:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
airflow-flower:
image: puckel/docker-airflow:1.10.3
depends_on:
- airflow-redis
environment:
- EXECUTOR=Celery
- REDIS_HOST=airflow-redis
- POSTGRES_HOST=airflow-postgres
# - REDIS_PASSWORD=redispass
ports:
- "5555:5555"
command: flower
airflow-scheduler:
image: puckel/docker-airflow:1.10.3
depends_on:
- airflow-webserver
volumes:
- ./dags:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
- ./src:/code/src/
environment:
- LOAD_EX=n
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
- EXECUTOR=Celery
- POSTGRES_HOST=airflow-postgres
- REDIS_HOST=airflow-redis
- PYTHONPATH=/code
# - POSTGRES_USER=airflow
# - POSTGRES_PASSWORD=airflow
# - POSTGRES_DB=airflow
# - REDIS_PASSWORD=redispass
command: scheduler
airflow-worker:
image: puckel/docker-airflow:1.10.3
depends_on:
- airflow-scheduler
volumes:
- ./dags:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
- ./src:/code/src/
environment:
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
- EXECUTOR=Celery
- POSTGRES_HOST=airflow-postgres
- REDIS_HOST=airflow-redis
- PYTHONPATH=/code
# - POSTGRES_USER=airflow
# - POSTGRES_PASSWORD=airflow
# - POSTGRES_DB=airflow
# - REDIS_PASSWORD=redispass
command: worker