-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.contextmemory.yml
More file actions
44 lines (42 loc) · 1.7 KB
/
Copy pathdocker-compose.contextmemory.yml
File metadata and controls
44 lines (42 loc) · 1.7 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
# Optional ContextMemory gateway (GHCR) for local CreditAI.
#
# Usage (DB + gateway):
# docker compose -f docker-compose.yml -f docker-compose.contextmemory.yml up -d
#
# Or gateway only:
# docker compose -f docker-compose.contextmemory.yml up -d
#
# Upstream: https://github.com/Kortexio/ContextMemory
# Point CreditAI at CM with CONTEXT_MEMORY_* (see .env.example).
# Without ApiKey, CreditAI calls Llm:* directly.
services:
contextmemory:
image: ghcr.io/kortexio/contextmemory:${CM_TAG:-latest}
container_name: creditai-contextmemory
restart: unless-stopped
ports:
- "${CONTEXT_MEMORY_HOST_PORT:-5100}:8080"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:8080
ContextMemory__PersistenceProvider: File
ContextMemory__DataPath: /app/data
# Upstream ContextMemory setting name (OpenAI-compatible LLM host for the gateway):
ContextMemory__OllamaEndpoint: ${LLM_ENDPOINT:-http://host.docker.internal:8000}
ContextMemory__DefaultLlmModel: ${LLM_MODEL:-qwen3.5:9b}
ContextMemory__MasterKey: ${CONTEXT_MEMORY_MASTER_KEY:-cm_master_dev_key_change_me}
ContextMemory__Apps__creditai__ApiKey: ${CONTEXT_MEMORY_API_KEY:-cm_creditai_local_key}
ContextMemory__Apps__creditai__LlmModel: ${LLM_MODEL:-qwen3.5:9b}
ContextMemory__Apps__creditai__SystemPrompt: You are a credit narrative assistant. Never invent scores or limits.
volumes:
- creditai_cm_data:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/health"]
interval: 15s
timeout: 5s
retries: 8
start_period: 40s
volumes:
creditai_cm_data: