-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
46 lines (43 loc) · 1.26 KB
/
docker-compose.test.yml
File metadata and controls
46 lines (43 loc) · 1.26 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
# Docker Compose test configuration for remote MCP integration test.
#
# Simulates two-machine scenario: PC A (client) connecting to PC B (server)
# over a Docker network with bearer auth.
#
# Usage:
# docker compose -f docker-compose.test.yml up --build --exit-code-from client
# docker compose -f docker-compose.test.yml down -v
services:
server:
build: .
command: ["--inspect", "--transport", "streamablehttp"]
environment:
- MATLAB_MCP_AUTH_TOKEN=test-token-for-ci
- MATLAB_MCP_POOL_MIN_ENGINES=0
- MATLAB_MCP_SERVER_HOST=0.0.0.0
networks:
- mcp-test-net
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.create_connection(('localhost',8765),timeout=2); s.close()"]
interval: 2s
timeout: 3s
retries: 20
start_period: 5s
client:
build: .
entrypoint:
- "sh"
- "-c"
- "pip install --quiet mcp httpx && python /app/tests/remote_client.py"
volumes:
- ./tests/remote_client.py:/app/tests/remote_client.py:ro
environment:
- MCP_SERVER_URL=http://server:8765/mcp
- MCP_AUTH_TOKEN=test-token-for-ci
networks:
- mcp-test-net
depends_on:
server:
condition: service_healthy
networks:
mcp-test-net:
driver: bridge