Files
ailine/.env.docker

52 lines
2.4 KiB
Docker
Raw Normal View History

2026-04-14 17:34:12 +08:00
# =============================================================================
# Docker Compose 服务器部署配置
# 用法: cp .env.docker .env 然后修改 API Key
# =============================================================================
# -----------------------------------------------------------------------------
# AI 模型 API 密钥(必需 - 请填入真实值)
2026-04-14 17:34:12 +08:00
# -----------------------------------------------------------------------------
ZHIPUAI_API_KEY=your_api_key_here
2026-04-14 17:34:12 +08:00
DEEPSEEK_API_KEY=your_deepseek_api_key_here
LLAMACPP_API_KEY=token-abc123
2026-04-14 17:34:12 +08:00
# -----------------------------------------------------------------------------
# llama.cpp 服务配置
2026-04-14 17:34:12 +08:00
# -----------------------------------------------------------------------------
# 主 LLM 服务 (Gemma-4-E2B GGUF) - 端口 8081
VLLM_BASE_URL=http://localhost:8081/v1
# Embedding 服务 (embeddinggemma-300M GGUF) - 端口 8082
VLLM_EMBEDDING_URL=http://localhost:8082/v1
# -----------------------------------------------------------------------------
# Mem0 记忆层配置
# -----------------------------------------------------------------------------
# ⭐ 注意Mem0 现在直接复用主 LLM 实例,无需单独配置
# Qdrant 向量数据库(远程服务器上的独立容器)
QDRANT_URL=http://115.190.121.151:6333
QDRANT_COLLECTION_NAME=mem0_user_memories
2026-04-14 17:34:12 +08:00
# -----------------------------------------------------------------------------
# 数据库配置
# -----------------------------------------------------------------------------
# PostgreSQL 连接字符串(远程服务器上的独立容器)
DB_URI=postgresql://postgres:mysecretpassword@115.190.121.151:5432/langgraph_db?sslmode=disable
2026-04-14 17:34:12 +08:00
# -----------------------------------------------------------------------------
# 前端配置
2026-04-14 17:34:12 +08:00
# -----------------------------------------------------------------------------
# Docker Compose 内部网络,使用服务名 'backend'
API_URL=http://backend:8001/chat
2026-04-14 17:34:12 +08:00
# -----------------------------------------------------------------------------
# 应用行为配置
# -----------------------------------------------------------------------------
MEMORY_SUMMARIZE_INTERVAL=10
ENABLE_GRAPH_TRACE=false
# -----------------------------------------------------------------------------
# 日志配置
# -----------------------------------------------------------------------------
2026-04-14 17:34:12 +08:00
LOG_LEVEL=WARNING
DEBUG=false