forked from perftools/xhgui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (32 loc) · 811 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (32 loc) · 811 Bytes
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
version: "3.7"
services:
app:
build: .
volumes:
- webroot-share:/var/www/xhgui/webroot
- ./config:/var/www/xhgui/config
environment:
- XHGUI_MONGO_HOST=mongodb://mongo:27017
- XHGUI_MONGO_DATABASE=xhprof
web:
image: nginx:1
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- webroot-share:/var/www/xhgui/webroot
ports:
- "8142:80"
mongo:
image: percona/percona-server-mongodb:3.6
# (case sensitive) engine: mmapv1, rocksdb, wiredTiger, inMemory
command: --storageEngine=wiredTiger
environment:
- MONGO_INITDB_DATABASE=xhprof
volumes:
- ./mongo.init.d:/docker-entrypoint-initdb.d
- mongodb:/data/db
ports:
- "27017:27017"
volumes:
webroot-share:
mongodb:
# vim:ts=2:sw=2:et