Files
X-Financial/document/development/2026-07-18/dev-logs/bugs/qdrant-compose-runtime-missing.md

14 lines
1.3 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 缺少 Qdrant 运行服务
日期2026-07-18
文档路径document/development/2026-07-18/dev-logs/bugs/qdrant-compose-runtime-missing.md
## 修复记录
- 15:54记录 bug 修复:默认本地 Compose 未管理 Qdrant知识检索与向量索引链路无法连接预期服务。
- Git 提交检查:`git fetch --all --prune` 成功upstream `origin/main` 无新提交;本地 ahead 19 条,最新为 `07241b46 fix(docker): manage local postgres in default compose``787bc3a4 feat(platform): close AI expense value loop``242d68c3 feat(approval): add task workflow and waiver decisions`,另有 16 条。
- 修改:在 `docker-compose.yml` 中加入持久化 Qdrant 服务、健康检查、本机回环端口和内部网络;主服务显式使用 `http://qdrant:6333`,并等待 Qdrant 健康后启动。
- 操作:执行 `docker compose config --quiet`,仅启动 `x-financial-qdrant`,未重建或重启 `local-x-financial-linux`
- 验证Qdrant 1.18.3 容器健康,主容器内 `qdrant` 域名可解析,`/healthz` 返回 200`/collections` 返回正常空集合;主容器仍保持原启动时间且重启次数为 0。
- 影响:默认本地运行环境具备可持久化的向量存储依赖,后续知识检索不再依赖手工创建的散落容器。