部署:网络改由 agent 侧创建,去掉手动 docker network create
- docker-compose: my-app-network 仍为 external,注释说明依赖 agent 先起 - README: 部署步骤改为「先起 agent(创建网络),再起 mcp」,并说明 mcp 单独先起会报错
This commit is contained in:
@@ -34,7 +34,7 @@ services:
|
||||
- my-app-network
|
||||
|
||||
networks:
|
||||
# 与 agent 仓库共用:agent-core 按容器名访问这些服务(如 http://mcp_web_search:3000/)。
|
||||
# 只需创建一次:docker network create my-app-network
|
||||
# 与 agent 仓库共用:网络由 agent 的 compose 创建并命名(所以要先起 agent),
|
||||
# 这里声明为 external 直接加入。agent-core 按容器名访问这些服务,如 http://mcp_web_search:3000/。
|
||||
my-app-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user