Files
ai-soulmate-local-deployment/compose/README.md
T

24 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Compose 状态
当前只提交基础设施 POC:PostgreSQL、Redis 和 MinIO。它不启动业务前端、后端、管理端或网关,因为这些服务还没有完成本地对象存储、管理端 AI-only 模式和生产镜像改造。
## 运行基础设施
cd /srv/ai-soulmate-local-deployment
./scripts/create-local-env.sh compose/.env
docker compose --env-file compose/.env -f compose/docker-compose.infra.yml config
docker compose --env-file compose/.env -f compose/docker-compose.infra.yml up -d
docker compose --env-file compose/.env -f compose/docker-compose.infra.yml ps
./scripts/verify-infra.sh compose/.env
compose/.env 只放在服务器,已经被 .gitignore 忽略。生成后执行 chmod 600 compose/.env。数据库、Redis 和 MinIO 的宿主机端口只绑定到 127.0.0.1,业务容器接入同一个 Docker 网络后使用服务名访问;不要把这些端口改成 0.0.0.0。
## 当前门槛
- ai-soulmate-server 当前 Dockerfile 只有开发目标,开发 Compose 还使用源码 bind mount,不能作为生产镜像。
- 平台和管理端仍需把 Alibaba OSS 收敛到可切换的存储接口,并通过本地 S3 兼容服务完成预签名、分片、CORS、权限、备份和恢复测试。
- mlkj-admin 仍需实现 AI SoulMate-only 启动模式,避免初始化无关业务数据库和默认账号。
- nginx-server 的公网路由不能原样复用;完成业务镜像后再使用环境无关的网关模板或客户现有网关。
上述门槛完成并记录镜像 digest、迁移版本和恢复演练后,才能新增可交付的应用 Compose。