This commit is contained in:
2026-06-15 13:52:20 +08:00
parent cbe5388e57
commit a095bdd927
3 changed files with 280 additions and 7 deletions
+3 -5
View File
@@ -4,7 +4,7 @@
# =============================================================================
services:
# --- WebUI 前端 ---
# --- WebUI 前端(纯前端,不本地处理,通过 Router → Worker 处理)---
gradio:
image: mineru-rocm:7.2.1
profiles: ["gradio"]
@@ -16,6 +16,7 @@ services:
- "10002:7860"
environment:
- GRADIO_SERVER_NAME=0.0.0.0
- MINERU_API_BASE=http://mineru-router:8000
- MINERU_MODEL_SOURCE=${MINERU_MODEL_SOURCE:-huggingface}
- HF_HUB_CACHE=${HF_HUB_CACHE:-/opt/models/huggingface}
- MODELSCOPE_CACHE=${MODELSCOPE_CACHE:-/opt/models/modelscope}
@@ -26,10 +27,7 @@ services:
- ./scripts:/opt/scripts:ro
command:
[
"mineru-gradio",
"--server-name", "0.0.0.0",
"--server-port", "7860",
"--api-url", "http://mineru-router:8000",
"/opt/mineru_venv/bin/python", "/opt/scripts/gradio_client.py",
]
depends_on:
- router