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
|
||||
# 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:
|
||||
# MCP Server - standalone service
|
||||
mcp-server:
|
||||
image: redbear-mem:latest
|
||||
image: redbear-mem-open:latest
|
||||
container_name: mcp-server
|
||||
ports:
|
||||
- "8081:8081" # MCP server port
|
||||
@@ -28,14 +28,14 @@ services:
|
||||
|
||||
# FastAPI application - connects to MCP server
|
||||
api:
|
||||
image: redbear-mem:latest
|
||||
image: redbear-mem-open:latest
|
||||
container_name: api
|
||||
ports:
|
||||
- "8002:8000"
|
||||
env_file:
|
||||
- .env
|
||||
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
|
||||
volumes:
|
||||
- ./files:/files
|
||||
@@ -51,12 +51,12 @@ services:
|
||||
|
||||
# Celery worker - connects to MCP server
|
||||
worker:
|
||||
image: redbear-mem:latest
|
||||
image: redbear-mem-open:latest
|
||||
container_name: worker
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- MCP_SERVER_URL=http://mcp-server:8081
|
||||
- MCP_SERVER_URL=http://mcp-server:8081 # Back to using container name
|
||||
volumes:
|
||||
- ./files:/files
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
Reference in New Issue
Block a user