重构代码,实现相对导入
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 5m26s

This commit is contained in:
2026-04-21 10:26:37 +08:00
parent 37e021e302
commit 726236eaff
68 changed files with 119 additions and 3990 deletions

View File

@@ -5,7 +5,7 @@ services:
backend:
build:
context: .. # 构建上下文为项目根目录
dockerfile: docker/Dockerfile.backend
dockerfile: docker/backend/Dockerfile
container_name: ai-backend
environment:
# ⭐ 敏感密钥:通过 .env 注入
@@ -26,7 +26,7 @@ services:
- QDRANT_URL=http://115.190.121.151:6333
# 前端通信地址Docker 内部网络)
- API_URL=http://backend:8083/chat
- API_URL=http://backend:8079/chat
volumes:
- ../data/user_docs:/app/data/user_docs # 挂载文档目录
- ../logs:/app/logs
@@ -35,16 +35,16 @@ services:
# ⭐ 移除对 postgres 和 qdrant 的依赖
restart: unless-stopped
ports:
- "8083:8083"
- "8079:8079"
frontend:
build:
context: ..
dockerfile: docker/Dockerfile.frontend
dockerfile: docker/frontend/Dockerfile
container_name: ai-frontend
environment:
# Docker 内部网络使用服务名 'backend' 解析后端服务
- API_URL=http://backend:8083/chat
- API_URL=http://backend:8079/chat
ports:
- "8501:8501"
networks:
@@ -56,8 +56,3 @@ services:
networks:
ai-network:
driver: bridge
# ⭐ PostgreSQL 和 Qdrant 已迁移到远程服务器,不再需要本地卷
# volumes:
# pg_data:
# qdrant_storage: