-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (87 loc) · 2.73 KB
/
docker-compose.yml
File metadata and controls
94 lines (87 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Docker Compose configuration for markdown-ticket application
# Three-container architecture: frontend, backend, and MCP server
# See README.docker.md for detailed usage instructions
#
# Usage:
# Development: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
# Production: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
services:
# Frontend Service - React + Vite
frontend:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: mdt-frontend
ports:
- '5174:80' # Host:Container - map to nginx port 80 (production)
networks:
- mdt-network
depends_on:
- backend
restart: unless-stopped
healthcheck:
test: [CMD, wget, --quiet, --tries=1, --spider, 'http://localhost:5173/']
interval: 30s
timeout: 3s
start_period: 10s
retries: 3
# Backend API Service - Express.js
backend:
build:
context: .
dockerfile: server/Dockerfile
target: development
container_name: mdt-backend
# Backend is NOT exposed to host - only accessible through Docker network
# Frontend accesses backend via Vite proxy: http://backend:3001
networks:
- mdt-network
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- PORT=3001
restart: unless-stopped
healthcheck:
test: [CMD, bun, -e, "fetch('http://localhost:3001/api/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 3s
start_period: 10s
retries: 3
mcp:
build:
context: .
dockerfile: mcp-server/Dockerfile
target: development
container_name: mdt-mcp
ports:
- '3012:3002' # Host:Container - using 3012 to avoid conflict with native MCP server
networks:
- mdt-network
environment:
# Core MCP Configuration
- NODE_ENV=development
- MCP_HTTP_ENABLED=true
- MCP_HTTP_PORT=3002
- MCP_BIND_ADDRESS=0.0.0.0
- LOG_LEVEL=debug
# Cache Configuration
- MCP_CACHE_TIMEOUT=300
# Phase 2 Security (optional, disabled by default)
- MCP_SECURITY_ORIGIN_VALIDATION=false
- MCP_SECURITY_RATE_LIMITING=false
- MCP_SECURITY_AUTH=false
restart: unless-stopped
healthcheck:
test: [CMD, bun, -e, "fetch('http://localhost:3002/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 3s
start_period: 10s
retries: 3
networks:
mdt-network:
driver: bridge
name: mdt-network
# Volumes are configured in override files:
# - docker-compose.dev.yml: Volume mounts for web server hot reload
# - docker-compose.prod.yml: No volume mounts, production builds