Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
feat: add mineru-router service to compose.yaml and update docker_deployment.md for improved deployment instructions
myhlolide77fc3af57d
diff --git a/docker/compose.yaml b/docker/compose.yamlindex ddeb0874..54171de5 100644--- a/docker/compose.yaml+++ b/docker/compose.yaml@@ -12,7 +12,7 @@ services:command:--host 0.0.0.0--port 30000- # --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.+ # --gpu-memory-utilization 0.5 # If encountering VRAM shortage, reduce the KV cache size by this parameter; if VRAM issues persist, try lowering it further to `0.4` or below.ulimits:memlock: -1stack: 67108864@@ -41,7 +41,7 @@ services:--host 0.0.0.0--port 8000# parameters for vllm-engine- # --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.+ # --gpu-memory-utilization 0.5 # If encountering VRAM shortage, reduce the KV cache size by this parameter; if VRAM issues persist, try lowering it further to `0.4` or below.ulimits:memlock: -1stack: 67108864@@ -56,6 +56,40 @@ services:device_ids: ["0"] # Modify for multiple GPUs: ["0", "1"]capabilities: [gpu]+ mineru-router:+ image: mineru:latest+ container_name: mineru-router+ restart: always+ profiles: ["router"]+ ports:+ - 8002:8002+ environment:+ MINERU_MODEL_SOURCE: local+ entrypoint: mineru-router+ command:+ --host 0.0.0.0+ --port 8002+ --local-gpus auto+ # To aggregate existing mineru-api services instead of starting local workers:+ # --local-gpus none+ # --upstream-url http://mineru-api:8000+ # --upstream-url http://mineru-api-2:8000+ # parameters for vllm-engine+ # --gpu-memory-utilization 0.5 # If encountering VRAM shortage, reduce the KV cache size by this parameter; if VRAM issues persist, try lowering it further to `0.4` or below.+ ulimits:+ memlock: -1+ stack: 67108864+ ipc: host+ healthcheck:+ test: ["CMD-SHELL", "curl -f http://localhost:8002/health || exit 1"]+ deploy:+ resources:+ reservations:+ devices:+ - driver: nvidia+ device_ids: ["0"] # Modify for multiple GPUs: ["0", "1"]+ capabilities: [gpu]+mineru-gradio:image: mineru:latestcontainer_name: mineru-gradio@@ -72,7 +106,7 @@ services:# --enable-api false # If you want to disable the API, set this to false# --max-convert-pages 20 # If you want to limit the number of pages for conversion, set this to a specific number# parameters for vllm-engine- # --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.+ # --gpu-memory-utilization 0.5 # If encountering VRAM shortage, reduce the KV cache size by this parameter; if VRAM issues persist, try lowering it further to `0.4` or below.ulimits:memlock: -1stack: 67108864diff --git a/docs/en/quick_start/docker_deployment.md b/docs/en/quick_start/docker_deployment.mdindex 2ab9aefd..d0089256 100644--- a/docs/en/quick_start/docker_deployment.md+++ b/docs/en/quick_start/docker_deployment.md@@ -25,7 +25,7 @@ MinerU's Docker uses `vllm/vllm-openai` as the base image, so it includes the `v```bashdocker run --gpus all \--shm-size 32g \- -p 30000:30000 -p 7860:7860 -p 8000:8000 \+ -p 30000:30000 -p 7860:7860 -p 8000:8000 -p 8002:8002 \--ipc=host \-it mineru:latest \/bin/bash@@ -73,6 +73,17 @@ connect to `openai-server` via `vlm-http-client` backend---+### Start MinerU Router service+ ```bash+ docker compose -f compose.yaml --profile router up -d+ ```+ >[!TIP]+ >+ >- The default configuration runs in `--local-gpus auto` mode, automatically starting local workers in the container and exposing the unified entry at `http://<server_ip>:8002/docs`.+ >- If you want to aggregate existing `mineru-api` services instead of starting local workers, refer to the commented example under the `mineru-router` service in `compose.yaml` and switch to `--upstream-url`.++---+### Start Gradio WebUI service```bashdocker compose -f compose.yaml --profile gradio up -ddiff --git a/docs/zh/quick_start/docker_deployment.md b/docs/zh/quick_start/docker_deployment.mdindex 42a5f29d..8d74c659 100644--- a/docs/zh/quick_start/docker_deployment.md+++ b/docs/zh/quick_start/docker_deployment.md@@ -25,7 +25,7 @@ Mineru的docker使用了`vllm/vllm-openai`作为基础镜像,因此在docker```bashdocker run --gpus all \--shm-size 32g \- -p 30000:30000 -p 7860:7860 -p 8000:8000 \+ -p 30000:30000 -p 7860:7860 -p 8000:8000 -p 8002:8002 \--ipc=host \-it mineru:latest \/bin/bash@@ -72,10 +72,21 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml---+### 启动 MinerU Router 服务+ ```bash+ docker compose -f compose.yaml --profile router up -d+ ```+ >[!TIP]+ >+ >- 默认配置会以 `--local-gpus auto` 模式在容器内自动拉起本地 worker,并通过 `http://<server_ip>:8002/docs` 暴露统一入口。+ >- 如果您希望聚合已有的 `mineru-api` 服务而不是启动本地 worker,可直接参考 `compose.yaml` 中 `mineru-router` 服务下的注释示例,改为使用 `--upstream-url`。++---+### 启动 Gradio WebUI 服务```bashdocker compose -f compose.yaml --profile gradio up -d```>[!TIP]>- >- 在浏览器中访问 `http://<server_ip>:7860` 使用 Gradio WebUI。\ No newline at end of file+ >- 在浏览器中访问 `http://<server_ip>:7860` 使用 Gradio WebUI。