添加长期记忆
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 27s

This commit is contained in:
2026-04-14 17:34:12 +08:00
parent 1bea2491c5
commit 8dd94c6c19
12 changed files with 953 additions and 197 deletions

35
.env.docker Normal file
View File

@@ -0,0 +1,35 @@
# =============================================================================
# Docker Compose 服务器部署配置
# 用法: cp .env.docker .env 然后修改 API Key
# =============================================================================
# -----------------------------------------------------------------------------
# AI 模型 API 密钥(必需 - 请修改为真实值)
# -----------------------------------------------------------------------------
ZHIPUAI_API_KEY=your_zhipuai_api_key_here
DEEPSEEK_API_KEY=your_deepseek_api_key_here
VLLM_LOCAL_KEY=token-abc123
# -----------------------------------------------------------------------------
# vLLM 服务配置
# -----------------------------------------------------------------------------
# Docker 部署时,如果 vLLM 在宿主机运行,使用 FRP 穿透地址或宿主机 IP
# 如果 vLLM 也在 Docker 中,使用 Docker 服务名或容器 IP
VLLM_BASE_URL=http://115.190.121.151:18000/v1
# -----------------------------------------------------------------------------
# 数据库配置
# -----------------------------------------------------------------------------
# Docker Compose 内部网络,使用服务名 'postgres'
DB_URI=postgresql://postgres:mysecretpassword@postgres:5432/langgraph_db?sslmode=disable
# -----------------------------------------------------------------------------
# 前端配置(通过 docker-compose.yml 注入,此处仅作文档说明)
# -----------------------------------------------------------------------------
# 注意API_URL 在 docker-compose.yml 中已配置为 http://backend:8001/chat
# 本地无需设置Docker 容器启动时会自动注入
# API_URL=http://backend:8001/chat
# 生产环境 - 仅显示关键信息
LOG_LEVEL=WARNING
DEBUG=false