-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
166 lines (155 loc) · 4.36 KB
/
docker-compose.yml
File metadata and controls
166 lines (155 loc) · 4.36 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
services:
ollama:
image: ollama/ollama:latest
# Expose for optional host-side testing; dashboard talks over the docker network.
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
event-bus:
build:
context: .
dockerfile: services/event_bus/Dockerfile
ports:
- "8100:8100"
volumes:
- ./config:/app/config:ro
gfkb:
build:
context: .
dockerfile: services/gfkb/Dockerfile
ports:
- "8101:8101"
volumes:
- ./data:/app/data
- ./config:/app/config:ro
ingestion:
build:
context: .
dockerfile: services/ingestion/Dockerfile
ports:
- "8102:8102"
environment:
- EVENT_BUS_URL=http://event-bus:8100
volumes:
- ./config:/app/config:ro
depends_on:
- event-bus
failure-classifier:
build:
context: .
dockerfile: services/failure_classifier/Dockerfile
ports:
- "8103:8103"
environment:
- EVENT_BUS_URL=http://event-bus:8100
- GFKB_URL=http://gfkb:8101
volumes:
- ./config:/app/config:ro
depends_on:
- event-bus
- gfkb
pattern-detector:
build:
context: .
dockerfile: services/pattern_detector/Dockerfile
ports:
- "8104:8104"
environment:
- EVENT_BUS_URL=http://event-bus:8100
- GFKB_URL=http://gfkb:8101
volumes:
- ./config:/app/config:ro
depends_on:
- event-bus
- gfkb
warning-policy:
build:
context: .
dockerfile: services/warning_policy/Dockerfile
ports:
- "8105:8105"
environment:
- GFKB_URL=http://gfkb:8101
volumes:
- ./config:/app/config:ro
depends_on:
- gfkb
health-scoring:
build:
context: .
dockerfile: services/health_scoring/Dockerfile
ports:
- "8106:8106"
environment:
- EVENT_BUS_URL=http://event-bus:8100
volumes:
- ./data:/app/data
- ./config:/app/config:ro
depends_on:
- event-bus
dashboard:
build:
context: .
dockerfile: services/dashboard/Dockerfile
environment:
- GFKB_URL=http://gfkb:8101
- HEALTH_URL=http://health-scoring:8106
# Prefer in-compose Ollama service (no host networking/firewall issues).
# Override by exporting OLLAMA_URL if you want to use a remote Ollama.
- OLLAMA_URL=${OLLAMA_URL:-http://ollama:11434}
- OLLAMA_MODEL=${OLLAMA_MODEL:-llama3.2:1b}
# Demo pricing knobs (USD per 1K tokens). Defaults are intentionally small but non-zero
# so the UI shows cost tracking without needing extra setup.
- OLLAMA_PRICE_PER_1K_INPUT=${OLLAMA_PRICE_PER_1K_INPUT:-0.001}
- OLLAMA_PRICE_PER_1K_OUTPUT=${OLLAMA_PRICE_PER_1K_OUTPUT:-0.002}
# Allow CLI/.env to control DB + secrets. Keep demo-safe defaults.
- DASHBOARD_DB_URL=${DASHBOARD_DB_URL:-sqlite:////app/data/dashboard.db}
- DASHBOARD_JWT_SECRET=${DASHBOARD_JWT_SECRET:-dev-secret-change-me}
- KAKVEDA_REDIS_URL=${KAKVEDA_REDIS_URL:-}
- KAKVEDA_OTEL_ENABLED=${KAKVEDA_OTEL_ENABLED:-0}
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT:-}
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- gfkb
- health-scoring
- ollama
- event-bus
ports:
- "8110:8110"
volumes:
- ./data:/app/data
- ./config:/app/config:ro
agent-echo:
build:
context: .
dockerfile: services/agent_echo/Dockerfile
environment:
- AGENT_NAME=agent-echo
ports:
- "8122:8120"
kakveda-kids-agent:
# Optional demo/companion agent. Enabled only when the `kids` profile is selected.
# Run with: `docker compose --profile kids up -d --build` (or `docker-compose --profile kids up -d --build`).
profiles: ["kids"]
build:
context: ../kakveda-kids-agent
dockerfile: Dockerfile
environment:
- OLLAMA_URL=http://ollama:11434
- EVENT_BUS_URL=http://event-bus:8100
- DASHBOARD_URL=http://dashboard:8110
- AGENT_NAME=kakveda-kids-agent
- AGENT_BASE_URL=http://kakveda-kids-agent:8120
- AUTO_REGISTER=${AUTO_REGISTER:-true}
- DASHBOARD_API_KEY=${DASHBOARD_API_KEY:-}
- KAKVEDA_E2E_EMIT_CITATION_HALLUCINATION=${KAKVEDA_E2E_EMIT_CITATION_HALLUCINATION:-0}
depends_on:
- event-bus
- dashboard
- ollama
ports:
- "8120:8120"
volumes:
ollama_data: