-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
465 lines (392 loc) · 10.2 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
version: '2'
services:
### Application ###
data:
image: busybox:latest
container_name: dockbox-data
volumes:
- ..:/var/www/site
networks:
- dockbox-net
### NGINX ###
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
container_name: dockbox-nginx
volumes_from:
- data
volumes:
- log-data:/var/log/nginx
ports:
- "80:80"
- "443:443"
networks:
- dockbox-net
### Apache ###
apache:
build:
context: ./apache
dockerfile: Dockerfile
container_name: dockbox-apache
volumes_from:
- data
volumes:
- log-data:/var/log/apache2
ports:
- "80:80"
networks:
- dockbox-net
### HHVM ###
hhvm:
build:
context: ./hhvm
dockerfile: Dockerfile
container_name: dockbox-hhvm
volumes_from:
- data
ports:
- "8000:80"
networks:
- dockbox-net
### MariaDB ###
mariadb:
image: mariadb:latest
container_name: dockbox-mariadb
volumes:
- database-data:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: sitemariadb
MYSQL_USER: sitedb_user
MYSQL_PASSWORD: sitedbsecret
MYSQL_ROOT_PASSWORD: root
networks:
- dockbox-net
### MySQL ###
mysql:
image: mysql:latest
container_name: dockbox-mysql
volumes:
- database-data:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: sitemysqldb
MYSQL_USER: sitedb_user
MYSQL_PASSWORD: sitedbsecret
MYSQL_ROOT_PASSWORD: root
networks:
- dockbox-net
### PostgreSQL ###
postgres:
image: postgres:alpine
container_name: dockbox-postgres
volumes:
- database-data:/var/lib/postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: sitepostgresdb
POSTGRES_USER: sitedb_user
POSTGRES_PASSWORD: sitedbsecret
links:
- pgadmin
networks:
- dockbox-net
### Mongo ###
mongo:
image: mongo:latest
container_name: dockbox-mongo
volumes:
- mongo-data:/data/db
ports:
- "27017:27017"
networks:
- dockbox-net
### Minio Cloud Storage ###
minio:
image: minio/minio:latest
container_name: dockbox-minio
volumes:
- minio-data:/export
environment:
MINIO_ACCESS_KEY: "miniouser"
MINIO_SECRET_KEY: "miniosecret"
ports:
- "9000:9000"
command: "server /home/shared"
networks:
- dockbox-net
### RethinkDB ###
rethinkdb:
image: rethinkdb:latest
container_name: dockbox-rethinkdb
volumes:
- rethinkdb-data:/data
ports:
- "8008:8080"
networks:
- dockbox-net
### Neo4j ###
neo4j:
image: neo4j:latest
container_name: dockbox-neo4j
volumes:
- neo4j-data:/data
environment:
- NEO4J_AUTH=neo4j/secret
ports:
- "7474:7474"
- "7687:7687"
networks:
- dockbox-net
### OrientDB ###
orientdb:
image: orientdb:latest
container_name: dockbox-orientdb
volumes:
- orientdb-data:/orientdb/databases
- orientdb-config:/orientdb/config
- orientdb-backup:/orientdb/backup
environment:
ORIENTDB_ROOT_PASSWORD: root
ports:
- "2424:2424"
- "2480:2480"
networks:
- dockbox-net
### Redis ###
redis:
image: redis:alpine
container_name: dockbox-redis
volumes:
- redis-data:/data
ports:
- "6379:6379"
networks:
- dockbox-net
### Memcached ###
memcached:
image: memcached:alpine
container_name: dockbox-memcached
ports:
- "11211:11211"
networks:
- dockbox-net
### RabbitMQ ###
rabbitmq:
image: rabbitmq:alpine
container_name: dockbox-rabbitmq
environment:
RABBITMQ_ERLANG_COOKIE: "DBHUpCzhPaM7"
ports:
- "4369:4369"
- "5671:5671"
- "5672:5672"
- "25672:25672"
links:
- rabbitmq-manage
networks:
- dockbox-net
### RabbitMQ Management ###
rabbitmq-manage:
image: rabbitmq:management-alpine
container_name: dockbox-rabbitmq-manage
environment:
RABBITMQ_ERLANG_COOKIE: "DBHUpCzhPaM7"
RABBITMQ_DEFAULT_USER: "mquser"
RABBITMQ_DEFAULT_PASS: "mqpassword"
RABBITMQ_DEFAULT_VHOST: "/"
volumes:
- rabbitmq-data:/var/lib/rabbitmq
ports:
- "15671:15671"
- "15672:15672"
networks:
- dockbox-net
### Beanstalkd ###
beanstalkd:
build:
context: ./beanstalkd/queue
dockerfile: Dockerfile
container_name: dockbox-beanstalkd
ports:
- "11300:11300"
links:
- beanstalkd-console
networks:
- dockbox-net
### Beanstalkd Console ###
beanstalkd-console:
build:
context: ./beanstalkd/console
dockerfile: Dockerfile
container_name: dockbox-beanstalkd-console
environment:
AUTH: "enable"
AUTH_USERNAME: "admin"
AUTH_PASSWORD: "password"
ports:
- "2080:2080"
networks:
- dockbox-net
### Node ###
node:
build:
context: ./node
dockerfile: Dockerfile
container_name: dockbox-node
volumes_from:
- data
tty: true
networks:
- dockbox-net
### Elasticsearch ###
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
container_name: dockbox-elasticsearch
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
networks:
- dockbox-net
### MailHog ###
mailhog:
image: mailhog/mailhog:latest
container_name: dockbox-mailhog
volumes:
- mailhog-data:/home/mailhog
ports:
- "1025:1025"
- "8025:8025"
networks:
- dockbox-net
### Docker Local Registry ###
docker-registry:
image: registry:latest
container_name: dockbox-registry
volumes:
- registry-data:/var/lib/registry
ports:
- "5000:5000"
networks:
- dockbox-net
### phpmyadmin [web interface for MySQL and MariaDB] ###
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: dockbox-phpmyadmin
environment:
PMA_ARBITRARY: 1
MYSQL_USER: sitedb_user
MYSQL_PASSWORD: sitedbsecret
MYSQL_ROOT_PASSWORD: root
ports:
- "8080:80"
links:
# for mysql container
- "mysql:db"
# for mariadb container
# - "mariadb:db"
networks:
- dockbox-net
### pgadmin [administration and management tool for PostgreSQL] ###
pgadmin:
image: fenglc/pgadmin4:latest
container_name: dockbox-pgadmin
ports:
- "5050:5050"
networks:
- dockbox-net
### Selenium Hub ###
selenium-hub:
image: selenium/hub:latest
container_name: dockbox-selenium-hub
privileged: true
ports:
- "4444:4444"
environment:
- GRID_TIMEOUT=120000
- GRID_BROWSER_TIMEOUT=120000
networks:
- dockbox-net
### Selenium Firefox Node ###
selenium-firefox-node:
image: selenium/node-firefox:latest
container_name: dockbox-selenium-firefox-node
privileged: true
depends_on:
- selenium-hub
ports:
- 5900
environment:
- no_proxy=localhost
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
networks:
- dockbox-net
### Selenium Chrome Node ###
selenium-chrome-node:
image: selenium/node-chrome:latest
container_name: dockbox-selenium-chrome-node
privileged: true
depends_on:
- selenium-hub
ports:
- 5900
environment:
- no_proxy=localhost
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
networks:
- dockbox-net
networks:
### Bridged Network ###
dockbox-net:
driver: "bridge"
volumes:
### Logging Storage ###
log-data:
driver: "local"
### Database Storage ###
database-data:
driver: "local"
### Database Storage ###
rethinkdb-data:
driver: "local"
### Minio Storage ###
minio-data:
driver: "local"
### Redis Storage ###
redis-data:
driver: "local"
### Mongo Storage ###
mongo-data:
driver: "local"
### Neo4j Storage ###
neo4j-data:
driver: "local"
### OriendDB Data Storage ###
orientdb-data:
driver: "local"
### OriendDB Config Storage ###
orientdb-config:
driver: "local"
### OriendDB Backup Storage ###
orientdb-backup:
driver: "local"
### RabbitMQ Storage ###
rabbitmq-data:
driver: "local"
### Elasticsearch Storage ###
elasticsearch-data:
driver: "local"
### Mailhog Storage ###
mailhog-data:
driver: "local"
### Registry Storage ###
registry-data:
driver: "local"