feat: 添加 Docling Serve 服务,更新 docker-compose 配置以支持内容提取功能

This commit is contained in:
alook
2026-08-24 10:51:32 +08:00
parent dcbbd9b98d
commit edd0e7b1ac
3 changed files with 67 additions and 1 deletions
+23
View File
@@ -50,6 +50,23 @@ services:
--port 4000
restart: unless-stopped
docling-serve:
image: quay.io/docling-project/docling-serve:latest
container_name: docling-serve
pull_policy: always
ports:
- '127.0.0.1:5001:5001'
environment:
- DOCLING_SERVE_ENABLE_UI=true
- DOCLING_SERVE_MAX_SYNC_WAIT=600
- DOCLING_SERVE_ENG_LOC_NUM_WORKERS=2
- UVICORN_WORKERS=1
- OMP_NUM_THREADS=4
- MKL_NUM_THREADS=4
volumes:
- docling-data:/app/data
restart: unless-stopped
jupyter:
image: quay.io/jupyter/datascience-notebook:latest
container_name: ai-chat-jupyter
@@ -105,14 +122,20 @@ services:
- CODE_EXECUTION_JUPYTER_AUTH=token
- CODE_EXECUTION_JUPYTER_AUTH_TOKEN=${JUPYTER_TOKEN}
- CODE_EXECUTION_JUPYTER_TIMEOUT=120
- CONTENT_EXTRACTION_ENGINE=docling
- DOCLING_SERVER_URL=http://docling-serve:5001
- >-
DOCLING_PARAMS={"do_ocr":true,"pdf_backend":"dlparse_v4","table_mode":"accurate"}
volumes:
- open-webui:/app/backend/data
depends_on:
- litellm
- cli-proxy-api
- docling-serve
- jupyter
restart: unless-stopped
volumes:
open-webui:
docling-data:
jupyter-work: