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
+24
View File
@@ -36,6 +36,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:18014: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
@@ -98,6 +115,11 @@ services:
- IMAGES_EDIT_OPENAI_API_BASE_URL=http://cli-proxy-api:8317/v1
- IMAGES_EDIT_OPENAI_API_KEY=${CLIPROXY_API_KEY}
- CONTENT_EXTRACTION_ENGINE=docling
- DOCLING_SERVER_URL=http://docling-serve:5001
- >-
DOCLING_PARAMS={"do_ocr":true,"pdf_backend":"dlparse_v4","table_mode":"accurate"}
# --- 以下是新增的网页搜索相关环境变量 ---
- ENABLE_WEB_SEARCH=true
- WEB_SEARCH_ENGINE=ddgs
@@ -109,10 +131,12 @@ services:
depends_on:
- litellm
- cli-proxy-api
- docling-serve
- jupyter
restart: unless-stopped
volumes:
open-webui:
docling-data:
jupyter-work:
open-terminal: