Repository navigation
Expand file tree
/
Copy pathdocker-compose.ghcr.yml
More file actions
71 lines (66 loc) · 2.41 KB
/
Copy pathdocker-compose.ghcr.yml
File metadata and controls
71 lines (66 loc) · 2.41 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
# Run ContextMemory from published GHCR images (no local build).
# Usage:
# docker compose -f docker-compose.ghcr.yml up -d
#
# Images (published on push to main):
# ghcr.io/kortexio/contextmemory:latest
# ghcr.io/kortexio/contextmemory-admin:latest
name: contextmemory
services:
api:
image: ghcr.io/kortexio/contextmemory:${CM_TAG:-latest}
container_name: contextmemory-api
restart: unless-stopped
ports:
- "${API_PORT:-5100}:8080"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:8080
ContextMemory__PersistenceProvider: ${PERSISTENCE_PROVIDER:-File}
ContextMemory__DataPath: /app/data
ContextMemory__LlmEndpoint: ${LLM_ENDPOINT:-}
ContextMemory__OllamaEndpoint: ${OLLAMA_ENDPOINT:-http://host.docker.internal:11434}
ContextMemory__OpenAiEndpoint: ${OPENAI_ENDPOINT:-https://api.openai.com}
ContextMemory__OpenAiApiKey: ${OPENAI_API_KEY:-}
ContextMemory__DefaultLlmModel: ${DEFAULT_LLM_MODEL:-qwen3.5:9b}
ContextMemory__MasterKey: ${MASTER_KEY:-cm_master_dev_key_change_me}
ContextMemory__AdminCorsOrigins__0: ${ADMIN_PUBLIC_URL:-http://localhost:5200}
ContextMemory__Apps__demo-dev__ApiKey: ${DEMO_APP_API_KEY:-cm_live_dev_key_change_me}
ContextMemory__Apps__demo-dev__SystemPrompt: You are a helpful, clear, and precise assistant.
ContextMemory__Apps__demo-dev__DefaultLanguage: en-US
ContextMemory__Apps__demo-dev__LlmModel: ${DEFAULT_LLM_MODEL:-qwen3.5:9b}
volumes:
- cm_data:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- cm-net
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/health"]
interval: 15s
timeout: 5s
retries: 8
start_period: 40s
admin:
image: ghcr.io/kortexio/contextmemory-admin:${CM_TAG:-latest}
container_name: contextmemory-admin
restart: unless-stopped
ports:
- "${ADMIN_PORT:-5200}:8080"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:8080
Admin__DefaultApiBaseUrl: http://api:8080
Admin__PublicApiBaseUrl: ${PUBLIC_API_URL:-http://localhost:5100}
Admin__DefaultMasterKey: ${MASTER_KEY:-cm_master_dev_key_change_me}
ApiBaseUrl: http://api:8080
depends_on:
api:
condition: service_healthy
networks:
- cm-net
volumes:
cm_data:
networks:
cm-net:
driver: bridge