-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.88 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.9"
# Agent Hypervisor — local demo stack
#
# Services:
# gateway : MCP gateway + Web UI dashboard → http://localhost:8090/ui
# demo : runs the interactive demo (02_hypervisor_demo.py) and exits
# benchmarks : runs the full benchmark suite and emits a metrics report
#
# Usage:
# docker compose up gateway # start the MCP gateway and open http://localhost:8090/ui
# docker compose up demo # run the three-scenario demo
# docker compose up benchmarks # run benchmark + metrics report
# docker compose run demo bash # interactive shell for exploration
services:
gateway:
build: .
command: >
python -c "
import uvicorn
from agent_hypervisor.hypervisor.mcp_gateway.mcp_server import create_mcp_app
from agent_hypervisor.control_plane.api import ControlPlaneState
cp = ControlPlaneState.create()
app = create_mcp_app(
manifest_path='manifests/example_world.yaml',
use_default_policy=True,
control_plane=cp,
)
uvicorn.run(app, host='0.0.0.0', port=8090)
"
ports:
- "8090:8090"
volumes:
- ./manifests:/app/manifests:ro
- ./_research/benchmarks/reports:/app/_research/benchmarks/reports:ro
environment:
- PYTHONPATH=/app/src
demo:
build: .
command: python examples/basic/02_hypervisor_demo.py
volumes:
- ./manifests:/app/manifests:ro
- ./benchmarks:/app/benchmarks
environment:
- PYTHONPATH=/app/src
benchmarks:
build: .
command: >
sh -c "python benchmarks/runner.py &&
python benchmarks/metrics.py --output benchmarks/reports/report-v1.md &&
python benchmarks/replay.py &&
cat benchmarks/reports/report-v1.md"
volumes:
- ./manifests:/app/manifests:ro
- ./benchmarks:/app/benchmarks
environment:
- PYTHONPATH=/app/src