Files
Cyrene/docker-compose.dev.db.yml
T
AskaEth 71f0a1abdb 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>
2026-05-30 13:43:22 +08:00

75 lines
1.7 KiB
YAML

# docker-compose.dev.db.yml (开发环境 - 仅运行数据库基础设施)
# 所有容器名以 cyrene_ 开头,通过 SSH 隧道访问
version: '3.8'
services:
# ========== PostgreSQL + pgvector ==========
postgres:
image: pgvector/pgvector:pg16
container_name: cyrene_postgres
environment:
POSTGRES_USER: cyrene
POSTGRES_PASSWORD: cyrene_pass
POSTGRES_DB: cyrene_ai
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cyrene -d cyrene_ai"]
interval: 10s
timeout: 3s
retries: 5
# ========== Redis ==========
redis:
image: redis:7-alpine
container_name: cyrene_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
# ========== Qdrant 向量数据库 ==========
qdrant:
image: qdrant/qdrant:latest
container_name: cyrene_qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
# ========== MinIO 对象存储 ==========
minio:
image: minio/minio:latest
container_name: cyrene_minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
# ========== NATS 消息队列 ==========
nats:
image: nats:2-alpine
container_name: cyrene_nats
ports:
- "4222:4222"
- "8222:8222"
volumes:
pg_data:
redis_data:
qdrant_data:
minio_data: