add mcp server
This commit is contained in:
parent
29697f6274
commit
46ec8c7fe3
8 changed files with 1665 additions and 17 deletions
20
compose.yaml
20
compose.yaml
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
lolly-api:
|
||||
api:
|
||||
build: .
|
||||
command: uv run fastapi run src/main.py --host 0.0.0.0 --port 8000
|
||||
env_file:
|
||||
|
|
@ -17,6 +17,24 @@ services:
|
|||
links:
|
||||
- db
|
||||
- redis
|
||||
|
||||
mcp:
|
||||
build: .
|
||||
command: uv run python -m src.mcp.server
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${MCP_PORT:-8000}:8000"
|
||||
volumes:
|
||||
- ./src:/app/src:ro
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
networks:
|
||||
- ai-network
|
||||
links:
|
||||
- db
|
||||
- redis
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue