-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (79 loc) · 1.97 KB
/
docker-compose.yml
File metadata and controls
83 lines (79 loc) · 1.97 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
76
77
78
79
80
81
82
83
services:
trino:
image: trinodb/trino:latest
ports:
- "8080:8080"
networks:
- trino-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/info"]
interval: 10s
timeout: 5s
retries: 5
# MCP Server with Streamable HTTP transport (recommended for web/remote access)
# Usage: docker-compose up mcp-trino-http
mcp-trino-http:
build: .
command: ["--transport", "streamable-http"]
ports:
- "8000:8000"
environment:
- TRINO_HOST=trino
- TRINO_PORT=8080
- TRINO_USER=trino
- TRINO_CATALOG=tpch
- TRINO_SCHEMA=tiny
- MCP_HOST=0.0.0.0
- MCP_PORT=8000
depends_on:
trino:
condition: service_healthy
networks:
- trino-network
restart: unless-stopped
# MCP Server with SSE transport (legacy HTTP transport)
# Usage: docker-compose --profile sse up mcp-trino-sse
mcp-trino-sse:
build: .
command: ["--transport", "sse"]
ports:
- "8001:8000"
environment:
- TRINO_HOST=trino
- TRINO_PORT=8080
- TRINO_USER=trino
- TRINO_CATALOG=tpch
- TRINO_SCHEMA=tiny
- MCP_HOST=0.0.0.0
- MCP_PORT=8000
depends_on:
trino:
condition: service_healthy
networks:
- trino-network
profiles:
- sse
restart: unless-stopped
# MCP Server with stdio transport (for testing with docker exec)
# Usage: docker-compose --profile stdio run --rm mcp-trino-stdio
mcp-trino-stdio:
build: .
command: ["--transport", "stdio"]
environment:
- TRINO_HOST=trino
- TRINO_PORT=8080
- TRINO_USER=trino
- TRINO_CATALOG=tpch
- TRINO_SCHEMA=tiny
depends_on:
trino:
condition: service_healthy
networks:
- trino-network
profiles:
- stdio
stdin_open: true
tty: true
networks:
trino-network:
driver: bridge