This commit is contained in:
2026-02-12 16:47:20 +08:00
parent 1b4f81a9bc
commit 53eb25b98e
3 changed files with 61 additions and 25 deletions

View File

@@ -7,12 +7,9 @@ services:
dockerfile: Dockerfile
container_name: mcp-docx-server
working_dir: /app
# MCP 通常通过标准输入/输出与客户端通信,因此不需要暴露端口
stdin_open: true
tty: true
volumes:
# 可选:将当前目录挂载到容器内,便于共享 ref.docx、color.lua 和输出文件
- ./:/app
command: ["python", "mcp_docx_server.py"]
# SSE MCP 服务端口
ports:
- "8080:8080"
# 可选:挂载数据目录供 DOCX 读写
# volumes:
# - ./data:/data