feat(stack): XHProf 采集切换文件落盘并独立 xhgui 供应

This commit is contained in:
augushong
2026-08-14 21:58:29 +08:00
parent e0e2580646
commit da388a8c4f
6 changed files with 138 additions and 47 deletions

View File

@@ -20,7 +20,9 @@ services:
# - ./storage:/var/www/html/storage
environment:
- XHPROF_ENABLE=${XHPROF_ENABLE:-false}
- XHGUI_UPLOAD_URL=http://xhgui:80/run/import
- XHPROF_SAVER=${XHPROF_SAVER:-file}
- XHPROF_FILE_DIR=${XHPROF_FILE_DIR:-}
- XHGUI_UPLOAD_URL=${XHGUI_UPLOAD_URL:-}
- XHGUI_UPLOAD_TOKEN=${XHGUI_UPLOAD_TOKEN:-ulthon-admin-xhprof}
extra_hosts:
- "host.docker.internal:host-gateway"
@@ -28,7 +30,7 @@ services:
xhgui:
image: xhgui/xhgui:0.24.x
restart: always
profiles: ["xhprof"]
profiles: ["xhgui"]
ports:
- "8142:80"
volumes: