-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (120 loc) · 4.08 KB
/
docker-compose.yml
File metadata and controls
125 lines (120 loc) · 4.08 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3.8'
services:
kata-container-manager:
build:
context: .
dockerfile: Dockerfile
container_name: kata-container-manager
ports:
- "8668:8668"
environment:
- ASPNETCORE_URLS=http://+:8668
- ASPNETCORE_ENVIRONMENT=Development
# Kubernetes Configuration
- KataContainerManager__TargetNamespace=sandbox-containers
- KataContainerManager__RuntimeClassName=kata-qemu
- KataContainerManager__DefaultImage=ghcr.io/andyjmorgan/donkeywork-codesandbox-executor:latest
- KataContainerManager__DefaultResourceRequests__MemoryMi=128
- KataContainerManager__DefaultResourceRequests__CpuMillicores=250
- KataContainerManager__DefaultResourceLimits__MemoryMi=512
- KataContainerManager__DefaultResourceLimits__CpuMillicores=1000
- KataContainerManager__PodNamePrefix=kata-sandbox
- KataContainerManager__CleanupCompletedPods=true
- KataContainerManager__PodReadyTimeoutSeconds=90
# MCP Server Configuration
- KataContainerManager__McpServerImage=ghcr.io/andyjmorgan/donkeywork-codesandbox-mcpserver:latest
- KataContainerManager__McpPodNamePrefix=kata-mcp
- KataContainerManager__McpWarmPoolSize=5
- KataContainerManager__McpIdleTimeoutMinutes=60
- KataContainerManager__McpMaxContainerLifetimeMinutes=480
# Serilog Configuration
- Serilog__MinimumLevel__Default=Information
- Serilog__MinimumLevel__Override__Microsoft=Warning
- Serilog__MinimumLevel__Override__System=Warning
volumes:
# Mount kubeconfig for local development
# Uncomment the following line if running locally outside Kubernetes
# - ~/.kube/config:/root/.kube/config:ro
- /tmp/kata-manager-logs:/tmp/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8668/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- kata-network
code-execution-server:
build:
context: .
dockerfile: src/DonkeyWork.CodeSandbox.Server/Dockerfile
container_name: code-execution-server
ports:
- "8666:8666"
environment:
- ASPNETCORE_URLS=http://+:8666
- ASPNETCORE_ENVIRONMENT=Development
# Serilog Configuration
- Serilog__MinimumLevel__Default=Information
- Serilog__MinimumLevel__Override__Microsoft=Warning
- Serilog__MinimumLevel__Override__System=Warning
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8666/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- kata-network
auth-proxy:
build:
context: .
dockerfile: src/DonkeyWork.CodeSandbox.AuthProxy/Dockerfile
container_name: auth-proxy
ports:
- "8080:8080"
- "8081:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ProxyConfiguration__ProxyPort=8080
- ProxyConfiguration__HealthPort=8081
- ProxyConfiguration__AllowedDomains__0=httpbin.org
- ProxyConfiguration__AllowedDomains__1=graph.microsoft.com
- ProxyConfiguration__AllowedDomains__2=api.github.com
- ProxyConfiguration__AllowedDomains__3=github.com
- ProxyConfiguration__CaCertificatePath=/certs/ca.crt
- ProxyConfiguration__CaPrivateKeyPath=/certs/ca.key
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- kata-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: sandbox-frontend
ports:
- "3000:80"
environment:
- API_BACKEND_URL=http://kata-container-manager:8668
depends_on:
- kata-container-manager
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:80/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- kata-network
networks:
kata-network:
driver: bridge