# MinerU SGLang [English](./README.md) | [中文](./README.zh.md) This service runs MinerU with the SGLang backend. ## Start Services - **SGLang backend server**: ```bash docker compose --profile sglang-server up -d ``` - **Document parse API**: ```bash docker compose --profile api up -d ``` - **Gradio WebUI**: ```bash docker compose --profile gradio up -d ``` ## Test SGLang backend ```bash pip install mineru mineru -p demo.pdf -o ./output -b vlm-sglang-client -u http://localhost:30000 ``` ## Services - `mineru-sglang-server`: The SGLang backend server. - `mineru-api`: The document parsing API. - `mineru-gradio`: The Gradio WebUI. ## Configuration - `MINERU_DOCKER_IMAGE`: The Docker image for MinerU SGLang, default is `alexsuntop/mineru-sglang:2.2.2`. - `MINERU_PORT_OVERRIDE_SGLANG`: The host port for the SGLang server, default is `30000`. - `MINERU_PORT_OVERRIDE_API`: The host port for the API service, default is `8000`. - `MINERU_PORT_OVERRIDE_GRADIO`: The host port for the Gradio WebUI, default is `7860`.