-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.xhgui-pro.yaml
88 lines (85 loc) · 2.11 KB
/
docker-compose.xhgui-pro.yaml
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
#ddev-generated
volumes:
hxgui-ui-nginx:
name: ddev-${DDEV_SITENAME}-xhgui-ui-nginx
labels:
com.ddev.site-name: ${DDEV_SITENAME}
xhgui-mongo-config:
name: ddev-${DDEV_SITENAME}-xhgui-mongo-data
labels:
com.ddev.site-name: ${DDEV_SITENAME}
xhgui-mongo-data:
name: ddev-${DDEV_SITENAME}-xhgui-mongo-data
labels:
com.ddev.site-name: ${DDEV_SITENAME}
xhgui-mongo-journal:
name: ddev-${DDEV_SITENAME}-xhgui-mongo-journal
labels:
com.ddev.site-name: ${DDEV_SITENAME}
services:
xhgui-ui:
container_name: ddev-${DDEV_SITENAME}-xhgui-ui
image: xhgui/xhgui:latest
volumes:
- "hxgui-ui-nginx:/run/nginx"
- "./xhgui/config/nginx.conf:/etc/nginx/http.d/default.conf:ro"
- "./xhgui/config/app.php:/var/www/xhgui/config/config.php"
networks:
- default
- ddev_default
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
deploy:
resources:
limits:
cpus: "2.5"
memory: "1024M"
reservations:
cpus: "1.5"
memory: "512M"
restart: no
depends_on:
web:
condition: service_started
xhgui-mongo:
condition: service_healthy
xhgui-mongo:
container_name: ddev-${DDEV_SITENAME}-xhgui-mongo
image: mongo:7.0
environment:
MONGO_INITDB_DATABASE: xhprof
volumes:
- "xhgui-mongo-data:/data/db"
- "xhgui-mongo-config:/data/configdb"
- "xhgui-mongo-journal:/data/db/journal"
networks:
- default
expose:
- "27017"
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
deploy:
resources:
limits:
cpus: "2.5"
memory: "1024M"
reservations:
cpus: "1.5"
memory: "512M"
restart: no
healthcheck:
test:
[
"CMD",
"mongosh",
"--quiet",
"127.0.0.1/test",
"--eval",
"'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)'",
]
interval: 10s
timeout: 10s
retries: 5
start_period: 20s