feat: Go模块路径迁移 + Docker生产部署适配 + ethend Docker兼容

- 所有Go模块路径从 github.com/yourname/cyrene-ai 迁移到 git.yeij.top/AskaEth/Cyrene
- 5个Go Dockerfile添加 GOPROXY=https://goproxy.cn,direct 解决国内构建问题
- ai-core go.mod 添加 pkg/plugins replace 指令
- Caddyfile 简化为 http:// 通配 + handle 保留 /api 前缀
- ethend Dockerfile 适配 (npm install + 仅 COPY package.json)
- ethend 新增 RUNNING_IN_DOCKER 环境变量,健康检查改用Docker服务名
- ethend 数据库状态检查支持Docker hostname (postgres/redis/qdrant/minio)
- process-manager 新增 CONTAINER_SVC_MAP + Docker模式自动检测
- 统一 docker-compose.dev.db.yml 卷名 (pg_data/redis_data/qdrant_data/minio_data)
- docker-compose.yml ethend服务挂载docker.sock + 端口变量化
- 清理 .env 统一后的残留文件与提示信息

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 13:43:22 +08:00
parent d164ff1207
commit 71f0a1abdb
122 changed files with 377 additions and 325 deletions
+3 -10
View File
@@ -1,14 +1,10 @@
# Caddyfile — Cyrene AI 助手平台反向代理
# Caddy version: 2.x
# 环境变量: DOMAIN, ACME_EMAIL
{
email {$ACME_EMAIL:admin@localhost}
admin off
}
# 站点(DOMAIN 未设置时回退到 :80 HTTP
{$DOMAIN::80} {
http:// {
log {
output stdout
format json
@@ -19,18 +15,15 @@
X-Frame-Options "DENY"
X-XSS-Protection "1; mode=block"
Referrer-Policy "strict-origin-when-cross-origin"
# 生产环境有域名时取消注释
# Strict-Transport-Security "max-age=31536000; includeSubDomains"
Strict-Transport-Security "max-age=31536000; includeSubDomains"
}
# WebSocket 路由
handle_path /ws/* {
handle /ws/* {
reverse_proxy gateway:8080
}
# API 路由 → Gateway
handle_path /api/* {
handle /api/* {
reverse_proxy gateway:8080 {
header_up Host {http.request.host}
header_up X-Forwarded-For {http.request.remote.host}