-
-
Notifications
You must be signed in to change notification settings - Fork 285
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.25 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
version: '3.8'
services:
shadcn-mcp-server:
build: .
container_name: shadcn-mcp-server
ports:
- "7423:7423"
environment:
- MCP_TRANSPORT_MODE=sse
- MCP_HOST=0.0.0.0
- MCP_PORT=7423
- MCP_CORS_ORIGINS=*
- GITHUB_PERSONAL_ACCESS_TOKEN=${GITHUB_PERSONAL_ACCESS_TOKEN:-}
volumes:
# Mount logs directory for persistent logging (optional)
- ./logs:/app/logs
networks:
- mcp-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.1'
memory: 128M
# Optional: nginx reverse proxy for production deployment
nginx:
image: nginx:alpine
container_name: mcp-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- shadcn-mcp-server
networks:
- mcp-network
restart: unless-stopped
profiles:
- production
networks:
mcp-network:
driver: bridge
volumes:
logs:
driver: local