-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.25 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
version: "3"
services:
web:
image: bearstech/nginx
depends_on:
- php
ports:
- 8000:8000
volumes:
- ./contribs/client/nginx.conf:/etc/nginx/sites-enabled/default
- ./contribs/client/web:/var/www/web
php:
image: php-with-xhgui-agent
user: www-data
environment:
XHGUI_UPLOAD_URI: http://agent:8002
XHGUI_PROFILING: "1"
XHGUI_PROFILING_RATIO: "100"
depends_on:
- agent
volumes:
- ./contribs/client/web:/var/www/web
agent:
image: xhgui-agent
environment:
LISTEN: 0.0.0.0:8002
MONGODB_URL: mongodb://xhgui:example@mongodb/xhgui?authSource=admin
depends_on:
- mongodb
ports:
- 8002:8002
xhgui:
image: xhgui-nginx
ports:
- 8001:8000
depends_on:
- xhgui-php
xhgui-php:
image: xhgui-php
depends_on:
- mongodb
environment:
XHGUI_MONGO_HOST: mongodb://xhgui:example@mongodb:27017/xhgui?authSource=admin
XHGUI_MONGO_DATABASE: xhgui
volumes:
- ./data/cache:/opt/xhgui/cache
mongodb:
image: mongo:3.6
environment:
MONGO_INITDB_DATABASE: xhgui
MONGO_INITDB_ROOT_USERNAME: xhgui
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- ./data/mongo:/data/db