forked from agentrust-io/cmcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Runs the cMCP gateway against the examples/minimal bundle, with a mock
# upstream so an allowed tool call forwards end to end.
#
# The mock shares the gateway's network namespace (network_mode: service:gateway),
# so the catalog's http://localhost:9001/mcp upstream resolves to the mock without
# a separate hostname. Bring it up with: docker compose up --build
services:
gateway:
build: .
working_dir: /etc/cmcp
ports:
- "8443:8443"
environment:
CMCP_DEV_MODE: "1"
volumes:
- ./examples/minimal/cmcp-config.yaml:/etc/cmcp/cmcp-config.yaml:ro
- ./examples/minimal/policies:/etc/cmcp/policies:ro
- ./examples/minimal/catalog.json:/etc/cmcp/catalog.json:ro
command: ["cmcp", "start", "--config", "/etc/cmcp/cmcp-config.yaml"]
mock-mcp-server:
image: python:3.11-slim
network_mode: "service:gateway"
volumes:
- ./scripts/mock_upstream.py:/mock_upstream.py:ro
command: ["python", "/mock_upstream.py", "--port", "9001"]
depends_on:
- gateway