-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.mcp.yml
More file actions
92 lines (88 loc) · 3.43 KB
/
docker-compose.mcp.yml
File metadata and controls
92 lines (88 loc) · 3.43 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
# Platform Engineering Copilot - MCP Only
# Minimal deployment: Just MCP Server + SQL Server
# Use this for AI client integrations (GitHub Copilot, Claude, etc.)
#
# Usage: docker-compose -f docker-compose.mcp.yml up -d
networks:
platform-network:
driver: bridge
volumes:
sqlserver-data:
mcp-logs:
services:
# SQL Server Database (Azure SQL Edge for ARM64/Apple Silicon compatibility)
sqlserver:
image: mcr.microsoft.com/azure-sql-edge:latest
platform: linux/arm64
container_name: pec-sqlserver
hostname: sqlserver
restart: unless-stopped
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${SA_PASSWORD:-PlatformDB123!}
- MSSQL_PID=Developer
ports:
- "1433:1433"
volumes:
- sqlserver-data:/var/opt/mssql
networks:
- platform-network
healthcheck:
test: ["CMD-SHELL", "(echo > /dev/tcp/localhost/1433) >/dev/null 2>&1 || exit 1"]
interval: 10s
timeout: 5s
retries: 15
start_period: 45s
# MCP Server (Multi-Agent Orchestrator)
platform-mcp:
platform: linux/amd64
build:
context: .
dockerfile: src/Platform.Engineering.Copilot.Mcp/Dockerfile
target: final
image: platform-engineering-copilot-mcp:latest
container_name: pec-mcp
hostname: platform-mcp
restart: unless-stopped
depends_on:
sqlserver:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Production}
- ASPNETCORE_URLS=http://0.0.0.0:5100
# Database
- ConnectionStrings__DefaultConnection=Server=sqlserver,1433;Database=PlatformDb;User=sa;Password=${SA_PASSWORD:-PlatformDB123!};TrustServerCertificate=true;MultipleActiveResultSets=true;Encrypt=false
- DatabaseProvider=SqlServer
# Azure Configuration
- AZURE_TENANT_ID=${AZURE_TENANT_ID:-}
- AZURE_CLIENT_ID=${AZURE_CLIENT_ID:-}
- AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET:-}
- AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID:-}
- Gateway__Azure__SubscriptionId=${AZURE_SUBSCRIPTION_ID:-}
- Gateway__Azure__TenantId=${AZURE_TENANT_ID:-}
- Gateway__Azure__CloudEnvironment=${AZURE_CLOUD_ENVIRONMENT:-AzureGovernment}
- Gateway__Azure__UseManagedIdentity=${AZURE_USE_MANAGED_IDENTITY:-false}
- Gateway__Azure__Enabled=${AZURE_ENABLED:-true}
# Azure OpenAI Configuration
- Gateway__AzureOpenAI__ApiKey=${AZURE_OPENAI_API_KEY:-}
- Gateway__AzureOpenAI__Endpoint=${AZURE_OPENAI_ENDPOINT:-https://mcp-ai.openai.azure.us/}
- Gateway__AzureOpenAI__DeploymentName=${AZURE_OPENAI_DEPLOYMENT:-gpt-4o}
- Gateway__AzureOpenAI__ChatDeploymentName=${AZURE_OPENAI_CHAT_DEPLOYMENT:-gpt-4o}
- Gateway__AzureOpenAI__EmbeddingDeploymentName=${AZURE_OPENAI_EMBEDDING_DEPLOYMENT:-text-embedding-ada-002}
# GitHub Configuration
- Gateway__GitHub__AccessToken=${GITHUB_TOKEN:-}
- Gateway__GitHub__Enabled=${GITHUB_ENABLED:-true}
# Git Sync Configuration
- GitSync__GitHubToken=${GITHUB_TOKEN:-}
- GitSync__AzureDevOpsToken=${AZURE_DEVOPS_TOKEN:-}
- GitSync__DefaultSyncIntervalMinutes=${GIT_SYNC_INTERVAL:-15}
- GitSync__CheckIntervalMinutes=${GIT_SYNC_CHECK_INTERVAL:-5}
- GitSync__AutoSyncEnabled=${GIT_AUTO_SYNC_ENABLED:-true}
ports:
- "5100:5100"
volumes:
- mcp-logs:/app/logs
- ./appsettings.json:/app/appsettings.json:ro
- ~/.azure:/root/.azure:ro
networks:
- platform-network