forked from cnoe-io/ai-platform-engineering
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.incident_engineer.yaml
More file actions
297 lines (289 loc) · 9.39 KB
/
Copy pathdocker-compose.incident_engineer.yaml
File metadata and controls
297 lines (289 loc) · 9.39 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
services:
# AI Incident Engineer Multi-Agent System (local build)
ai-incident-engineer:
build:
context: .
dockerfile: build/Dockerfile
container_name: incident-engineer
depends_on:
- agent-pagerduty
- agent-github
- agent-backstage
- agent-jira
- agent-confluence
env_file:
- .env
ports:
# Expose the AI Incident Engineer agent on port 8000
- "8000:8000"
volumes:
- .env:/app/.env
- ./prompt_config.yaml:/app/prompt_config.yaml
environment:
- AGENT_PROTOCOL=a2a
- JIRA_AGENT_HOST=agent-jira
- CONFLUENCE_AGENT_HOST=agent-confluence
- GITHUB_AGENT_HOST=agent-github
- PAGERDUTY_AGENT_HOST=agent-pagerduty
- BACKSTAGE_AGENT_HOST=agent-backstage
- KOMODOR_AGENT_HOST=agent-komodor
- ENABLE_KOMODOR=${ENABLE_KOMODOR:-false}
# Disable OpenTelemetry to prevent credential errors
- OTEL_SDK_DISABLED=true
# Uncomment this once the stable GHCR image includes tracing evaluation support
# - ENABLE_TRACING=${ENABLE_TRACING:-false}
# - LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY}
# - LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY}
# - LANGFUSE_HOST=${LANGFUSE_HOST:-http://langfuse-web:3000}
# - LANGFUSE_SESSION_ID=${LANGFUSE_SESSION_ID:-ai-incident-engineering}
# - LANGFUSE_USER_ID=${LANGFUSE_USER_ID:-incident-engineer}
entrypoint: ["poetry", "run", "python", "-m", "uvicorn", "ai_platform_engineering.multi_agents.incident_engineer.protocol_bindings.a2a.main:app", "--host", "0.0.0.0", "--port", "8000"]
# Agent ArgoCD
agent-argocd:
image: ghcr.io/cnoe-io/agent-argocd:a2a-stable
container_name: agent-argocd
volumes:
- ./.env:/app/.env
ports:
# Expose the ArgoCD agent on port 8080
- "8001:8000"
# Agent GitHub
agent-github:
image: ghcr.io/cnoe-io/agent-github:a2a-stable
container_name: agent-github
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./.env:/app/.env
ports:
# Expose the GitHub agent on port 8003
- "8002:8000"
# Agent PagerDuty
agent-pagerduty:
image: ghcr.io/cnoe-io/agent-pagerduty:a2a-stable
container_name: agent-pagerduty
volumes:
- ./.env:/app/.env
ports:
# Expose the PagerDuty agent on port 8004
- "8003:8000"
# Agent Jira
agent-jira:
image: ghcr.io/cnoe-io/agent-jira:a2a-stable
container_name: agent-jira
volumes:
- ./.env:/app/.env
ports:
# Expose the Jira agent on port 8001
- "8004:8000"
# Agent Confluence
agent-confluence:
image: ghcr.io/cnoe-io/agent-confluence:a2a-stable
container_name: agent-confluence
volumes:
- ./.env:/app/.env
ports:
# Expose the Confluence agent on port 8002
- "8005:8000"
# Sample UI container to interact with A2A applications
# ui:
# image: ghcr.io/eti-demos/agentconnect
# container_name: ui
# ports:
# - "3001:3001"
backstage-agent-forge:
image: ghcr.io/cnoe-io/backstage-plugin-agent-forge:latest
container_name: backstage-agent-forge
ports:
- "8006:3000"
# Agent Backstage
agent-backstage:
image: ghcr.io/cnoe-io/agent-backstage:a2a-stable
container_name: agent-backstage
volumes:
- ./.env:/app/.env
ports:
# Expose the Backstage agent on port 8006
- "8007:8000"
environment:
- BACKSTAGE_API_TOKEN=${BACKSTAGE_API_TOKEN}
- BACKSTAGE_URL=${BACKSTAGE_URL}
# Langfuse Tracing Services (use --profile tracing to enable)
# Reference: https://github.com/langfuse/langfuse/blob/main/docker-compose.yml
langfuse-worker:
image: langfuse/langfuse-worker:3
container_name: langfuse-worker
restart: always
profiles:
- tracing
depends_on:
langfuse-postgres:
condition: service_healthy
langfuse-minio:
condition: service_healthy
langfuse-redis:
condition: service_healthy
langfuse-clickhouse:
condition: service_healthy
ports:
- "127.0.0.1:3030:3030"
environment:
DATABASE_URL: postgresql://postgres:postgres@langfuse-postgres:5432/postgres
SALT: "mysalt"
ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
CLICKHOUSE_MIGRATION_URL: clickhouse://langfuse-clickhouse:9000
CLICKHOUSE_URL: http://langfuse-clickhouse:8123
CLICKHOUSE_USER: clickhouse
CLICKHOUSE_PASSWORD: clickhouse
CLICKHOUSE_CLUSTER_ENABLED: "false"
# S3 Event Upload Configuration (Required for tracing)
LANGFUSE_S3_EVENT_UPLOAD_BUCKET: langfuse
LANGFUSE_S3_EVENT_UPLOAD_REGION: us-east-1
LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID: minio
LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY: miniosecret
LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT: http://langfuse-minio:9000
LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE: "true"
LANGFUSE_S3_EVENT_UPLOAD_PREFIX: "events/"
# S3 Media Upload Configuration
LANGFUSE_S3_MEDIA_UPLOAD_BUCKET: langfuse
LANGFUSE_S3_MEDIA_UPLOAD_REGION: us-east-1
LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID: minio
LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY: miniosecret
LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT: http://langfuse-minio:9000
LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE: "true"
LANGFUSE_S3_MEDIA_UPLOAD_PREFIX: "media/"
REDIS_HOST: langfuse-redis
REDIS_AUTH: myredissecret
langfuse-web:
image: langfuse/langfuse:3
container_name: langfuse-web
restart: always
profiles:
- tracing
depends_on:
langfuse-postgres:
condition: service_healthy
langfuse-minio:
condition: service_healthy
langfuse-redis:
condition: service_healthy
langfuse-clickhouse:
condition: service_healthy
ports:
- "3000:3000"
environment:
DATABASE_URL: postgresql://postgres:postgres@langfuse-postgres:5432/postgres
SALT: "mysalt"
ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
CLICKHOUSE_MIGRATION_URL: clickhouse://langfuse-clickhouse:9000
CLICKHOUSE_URL: http://langfuse-clickhouse:8123
CLICKHOUSE_USER: clickhouse
CLICKHOUSE_PASSWORD: clickhouse
CLICKHOUSE_CLUSTER_ENABLED: "false"
# S3 Event Upload Configuration (Required for tracing)
LANGFUSE_S3_EVENT_UPLOAD_BUCKET: langfuse
LANGFUSE_S3_EVENT_UPLOAD_REGION: us-east-1
LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID: minio
LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY: miniosecret
LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT: http://langfuse-minio:9000
LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE: "true"
LANGFUSE_S3_EVENT_UPLOAD_PREFIX: "events/"
# S3 Media Upload Configuration
LANGFUSE_S3_MEDIA_UPLOAD_BUCKET: langfuse
LANGFUSE_S3_MEDIA_UPLOAD_REGION: us-east-1
LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID: minio
LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY: miniosecret
LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT: http://langfuse-minio:9000
LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE: "true"
LANGFUSE_S3_MEDIA_UPLOAD_PREFIX: "media/"
REDIS_HOST: langfuse-redis
REDIS_AUTH: myredissecret
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: mysecret
langfuse-clickhouse:
image: clickhouse/clickhouse-server
container_name: langfuse-clickhouse
restart: always
profiles:
- tracing
user: "101:101"
environment:
CLICKHOUSE_DB: default
CLICKHOUSE_USER: clickhouse
CLICKHOUSE_PASSWORD: clickhouse
volumes:
- langfuse_clickhouse_data:/var/lib/clickhouse
- langfuse_clickhouse_logs:/var/log/clickhouse-server
ports:
- "127.0.0.1:8123:8123"
- "127.0.0.1:9000:9000"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
interval: 5s
timeout: 5s
retries: 10
start_period: 1s
langfuse-minio:
image: minio/minio
container_name: langfuse-minio
restart: always
profiles:
- tracing
entrypoint: sh
command: -c 'mkdir -p /data/langfuse && minio server --address ":9000" --console-address ":9001" /data'
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: miniosecret
ports:
- "9090:9000"
- "127.0.0.1:9091:9001"
volumes:
- langfuse_minio_data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 1s
timeout: 5s
retries: 5
start_period: 1s
langfuse-redis:
image: redis:7
container_name: langfuse-redis
restart: always
profiles:
- tracing
command: >
--requirepass ${REDIS_AUTH:-myredissecret}
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 10s
retries: 10
langfuse-postgres:
image: postgres:15
container_name: langfuse-postgres
restart: always
profiles:
- tracing
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 10
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "127.0.0.1:5432:5432"
volumes:
- langfuse_postgres_data:/var/lib/postgresql/data
volumes:
langfuse_postgres_data:
driver: local
langfuse_clickhouse_data:
driver: local
langfuse_clickhouse_logs:
driver: local
langfuse_minio_data:
driver: local