Merge #40 into develop from fix/mcp-quick-fix
mcp quick fix * fix/mcp-quick-fix: (2 commits) fix(docker-compose): update image names and restore container name usage for MCP server URL mcp quick fix Signed-off-by: aliyun6762716068 <accounts_68cb7c6b61f5dcc4200d6251@mail.teambition.com> Reviewed-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com> Merged-by: zhuwenhui5566@163.com <zhuwenhui5566@163.com> CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/40
This commit is contained in:
@@ -8,4 +8,7 @@ from mcp.server.fastmcp import FastMCP
|
|||||||
|
|
||||||
# Initialize FastMCP server instance
|
# Initialize FastMCP server instance
|
||||||
# This instance is shared across all tool modules
|
# This instance is shared across all tool modules
|
||||||
mcp = FastMCP('data_flow')
|
mcp = FastMCP(
|
||||||
|
'data_flow',
|
||||||
|
allowed_hosts=["mcp-server", "localhost"]
|
||||||
|
)
|
||||||
@@ -3,7 +3,7 @@ version: '3.9'
|
|||||||
services:
|
services:
|
||||||
# MCP Server - standalone service
|
# MCP Server - standalone service
|
||||||
mcp-server:
|
mcp-server:
|
||||||
image: redbear-mem:latest
|
image: redbear-mem-open:latest
|
||||||
container_name: mcp-server
|
container_name: mcp-server
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081" # MCP server port
|
- "8081:8081" # MCP server port
|
||||||
@@ -28,14 +28,14 @@ services:
|
|||||||
|
|
||||||
# FastAPI application - connects to MCP server
|
# FastAPI application - connects to MCP server
|
||||||
api:
|
api:
|
||||||
image: redbear-mem:latest
|
image: redbear-mem-open:latest
|
||||||
container_name: api
|
container_name: api
|
||||||
ports:
|
ports:
|
||||||
- "8002:8000"
|
- "8002:8000"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- MCP_SERVER_URL=http://mcp-server:8081
|
- MCP_SERVER_URL=http://mcp-server:8081 # Back to using container name
|
||||||
- SERVER_IP=0.0.0.0 # Ensure MCP server binds to all interfaces
|
- SERVER_IP=0.0.0.0 # Ensure MCP server binds to all interfaces
|
||||||
volumes:
|
volumes:
|
||||||
- ./files:/files
|
- ./files:/files
|
||||||
@@ -51,12 +51,12 @@ services:
|
|||||||
|
|
||||||
# Celery worker - connects to MCP server
|
# Celery worker - connects to MCP server
|
||||||
worker:
|
worker:
|
||||||
image: redbear-mem:latest
|
image: redbear-mem-open:latest
|
||||||
container_name: worker
|
container_name: worker
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- MCP_SERVER_URL=http://mcp-server:8081
|
- MCP_SERVER_URL=http://mcp-server:8081 # Back to using container name
|
||||||
volumes:
|
volumes:
|
||||||
- ./files:/files
|
- ./files:/files
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|||||||
Reference in New Issue
Block a user