Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
226 lines (214 loc) · 5.67 KB
/
Copy pathdocker-compose.yml
File metadata and controls
226 lines (214 loc) · 5.67 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
services:
agentctl-api:
build:
context: ./services/api
environment:
SERVER_PORT: 8080
SPRING_PROFILES_ACTIVE: local
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
POSTGRES_HOST: postgres
TEMPORAL_ADDRESS: temporal:7233
AGENTCTL_TEMPORAL_ENABLED: "true"
AGENTCTL_WORKER_ENABLED: "false"
MINIO_ENDPOINT: http://minio:9000
FGA_GATEWAY_BASE_URL: ${FGA_GATEWAY_BASE_URL:-http://host.docker.internal:8089}
depends_on:
- postgres
- temporal
- minio
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/api/health"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
agentctl-worker:
build:
context: ./services/api
command:
- "--spring.application.name=agentctl-worker"
- "--server.port=8081"
environment:
SPRING_PROFILES_ACTIVE: local
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
POSTGRES_HOST: postgres
TEMPORAL_ADDRESS: temporal:7233
AGENTCTL_TEMPORAL_ENABLED: "true"
AGENTCTL_WORKER_ENABLED: "true"
AGENTCTL_AGENT_WORKER_BASE_URL: http://agentctl-agent-worker:8090
MINIO_ENDPOINT: http://minio:9000
depends_on:
- postgres
- temporal
- minio
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8081/api/health"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
agentctl-agent-worker:
profiles:
- agents
build:
context: ./services/agent-worker
environment:
AGENTCTL_API_BASE_URL: http://agentctl-api:8080
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB:-agentctl}
POSTGRES_USER: ${POSTGRES_USER:-agentctl}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-agentctl}
OLLAMA_BASE_URL: http://ollama:11434
OLLAMA_MODEL: ${OLLAMA_MODEL:-}
FGA_GATEWAY_BASE_URL: ${FGA_GATEWAY_BASE_URL:-http://host.docker.internal:8089}
ports:
- "8090:8090"
depends_on:
- agentctl-api
- postgres
- ollama
healthcheck:
test: ["CMD", "uv", "run", "agentctl-agent-worker", "--health"]
interval: 10s
timeout: 5s
retries: 12
start_period: 10s
agentctl-web:
build:
context: ./services/web
environment:
NEXT_PUBLIC_AGENTCTL_API_BASE_URL: http://localhost:8080
depends_on:
- agentctl-api
ports:
- "3000:3000"
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://localhost:3000').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-agentctl}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-agentctl}
POSTGRES_DB: ${POSTGRES_DB:-agentctl}
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 12
temporal:
image: temporalio/auto-setup:latest
environment:
DB: postgres12
DB_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER:-agentctl}
POSTGRES_PWD: ${POSTGRES_PASSWORD:-agentctl}
POSTGRES_SEEDS: postgres
DYNAMIC_CONFIG_FILE_PATH: config/dynamicconfig/development-sql.yaml
depends_on:
- postgres
ports:
- "7233:7233"
healthcheck:
test: ["CMD-SHELL", "bash -ec '</dev/tcp/127.0.0.1/7233'"]
interval: 10s
timeout: 5s
retries: 18
start_period: 30s
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-agentctl}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-agentctl-local-password}
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 5s
retries: 12
ollama:
profiles:
- agents
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama-data:/root/.ollama
otel-collector:
profiles:
- observability
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otelcol/config.yaml"]
volumes:
- ./infra/otel/otel-collector-config.yaml:/etc/otelcol/config.yaml:ro
ports:
- "4317:4317"
- "4318:4318"
- "8889:8889"
- "13133:13133"
healthcheck:
test: ["CMD", "/otelcol-contrib", "--version"]
interval: 10s
timeout: 5s
retries: 12
prometheus:
profiles:
- observability
image: prom/prometheus:latest
command:
- "--config.file=/etc/prometheus/prometheus.yml"
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- otel-collector
ports:
- "9090:9090"
tempo:
profiles:
- observability
image: grafana/tempo:latest
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./infra/tempo/tempo.yaml:/etc/tempo.yaml:ro
ports:
- "3200:3200"
grafana:
profiles:
- observability
image: grafana/grafana:latest
environment:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
depends_on:
- prometheus
- tempo
ports:
- "3001:3000"
volumes:
- grafana-data:/var/lib/grafana
volumes:
grafana-data:
minio-data:
ollama-data:
postgres-data: