-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
75 lines (72 loc) · 2.73 KB
/
compose.yaml
File metadata and controls
75 lines (72 loc) · 2.73 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
restexec:
build:
context: ./services/restexec
dockerfile: Dockerfile
container_name: restexec
ports:
- "3000:3000"
environment:
- PORT=${PORT:-3000}
- WORKSPACE_DIR=${WORKSPACE_DIR:-/workspace}
- TOOLS_DIR=${TOOLS_DIR:-/tools}
- DEFAULT_TIMEOUT=${DEFAULT_TIMEOUT:-5000}
- MAX_TIMEOUT=${MAX_TIMEOUT:-300000}
- LOG_LEVEL=${LOG_LEVEL:-info}
- DENO_PATH=${DENO_PATH:-deno}
- DENO_ALLOW_READ=${DENO_ALLOW_READ:-/workspace,/tools}
- DENO_ALLOW_WRITE=${DENO_ALLOW_WRITE:-}
- DENO_ALLOW_NET=${DENO_ALLOW_NET:-}
- DENO_ALLOW_RUN=${DENO_ALLOW_RUN:-false}
- DENO_IMPORT_MAP=${DENO_IMPORT_MAP:-/workspace/import_map.json}
volumes:
# Mount workspace and tools directories
- ./services/restexec/example/workspace:/workspace
- ./services/restexec/example/tools:/tools
# For development: mount source code to enable changes without rebuilding
# Uncomment the following lines for development mode
# - ./services/restexec/src:/app/src:ro
# - ./services/restexec/deno.json:/app/deno.json:ro
restart: unless-stopped
healthcheck:
test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- restexec-network
mcp-gateway:
build:
context: ./services/mcp-gateway
dockerfile: Dockerfile
container_name: mcp-gateway
ports:
- "3001:3001"
environment:
- PORT=${MCP_GATEWAY_PORT:-3001}
- LOG_LEVEL=${MCP_GATEWAY_LOG_LEVEL:-INFO}
- MAX_TIMEOUT=${MCP_GATEWAY_MAX_TIMEOUT:-300000}
- HEALTH_CHECK_INTERVAL=${MCP_GATEWAY_HEALTH_CHECK_INTERVAL:-30000}
- MCP_SERVER_RESTART_POLICY=${MCP_GATEWAY_RESTART_POLICY:-never}
- DISABLE_VALIDATION=${MCP_GATEWAY_DISABLE_VALIDATION:-false}
- CONFIG_PATH=${MCP_GATEWAY_CONFIG_PATH:-/config/config.yaml}
volumes:
# Mount config file (required)
- ./services/mcp-gateway/config/config.yaml:/config/config.yaml:ro
- ./services/mcp-gateway/tests/test_server/sample-mcp-server:/app/sample-mcp-server
# For development: mount source code to enable changes without rebuilding
# Uncomment the following lines for development mode
# - ./services/mcp-gateway/internal:/app/internal:ro
# - ./services/mcp-gateway/cmd:/app/cmd:ro
restart: unless-stopped
# Healthcheck is disabled because distroless/static image doesn't include tools like wget or curl
# Monitor the service using application logs or external monitoring tools instead
networks:
- restexec-network
networks:
restexec-network:
driver: bridge
volumes:
workspace:
tools: