Commit 617108d4 authored by 谢宇轩's avatar 谢宇轩

fix: update docker network setting

parent d0ec3142
# Host-side Compose interpolation only. This value is not injected into the
# query-api container. It must name the Docker network already joined by the
# target Neo4j container.
NEO4J_DOCKER_NETWORK=neo4jagent_default
......@@ -2,6 +2,12 @@
面向组内共享的轻量查询服务。适用于 Neo4j Community:调用方只持有 Workspace API Key,通过预定义模板查询图数据。
## 文档入口
完整的部署、调用、协作与运维流程见 [使用手册](docs/USAGE_GUIDE.md)。它覆盖首次部署、源码运行、配置覆盖、Key 生命周期、模板与快捷查询、结果解码、备份恢复、故障排查和测试验收。
本文保留产品边界、配置参考和快速命令,适合作为项目首页;需要按角色执行操作时,请从使用手册开始。
## 能力与边界
- 一个 Key 对应一个 Workspace;一个 Workspace 对应一个 Neo4j URI 与数据库。
......@@ -16,10 +22,11 @@
## Docker 启动
镜像:`neo4j-query-service:0.1.0`。示例 Compose 接入已有的 `neo4jagent_default` 网络,不启动或修改已有 Neo4j。
镜像:`neo4j-query-service:0.1.0`。示例 Compose 接入已有的 Neo4j Docker 网络,不启动或修改已有 Neo4j。默认网络名为 `neo4jagent_default`;若部署环境不同,请在项目目录的 `.env` 中设置 `NEO4J_DOCKER_NETWORK=<实际网络名>`(可从 `.env.example` 复制),或在启动命令前设置同名环境变量。
```bash
cp examples/workspaces.yaml config.local.yaml
cp .env.example .env
# 编辑 URI、数据库、账号和密码。已有本地容器可使用 bolt://neo4j-agent:7687。
docker compose up -d --build
docker compose exec query-api query-service healthcheck
......
......@@ -21,6 +21,8 @@ services:
networks:
neo4j:
external: true
name: neo4jagent_default
# Set NEO4J_DOCKER_NETWORK on the deployment host when the existing
# Neo4j Compose project uses a different network name.
name: ${NEO4J_DOCKER_NETWORK:-neo4jagent_default}
volumes:
query-data:
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment