-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (42 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
51 lines (42 loc) · 1.06 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
version: '3.8'
services:
cortex:
build: .
container_name: cortex-mcp-server
restart: unless-stopped
# Expose HTTP server port
ports:
- "8000:8000"
# Mount data directory for persistence
volumes:
- cortex-data:/app/data
- ./logs:/app/logs
# Environment variables (override defaults)
environment:
- CORTEX_STORAGE_DIR=/app/data
- CORTEX_ENABLE_CACHE=true
- CORTEX_PII_DETECTION=true
- CORTEX_THRESHOLD=0.85
- CORTEX_LOG_LEVEL=INFO
- CORTEX_HTTP_HOST=0.0.0.0
- CORTEX_HTTP_PORT=8000
# Resource limits (adjust as needed)
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '1.0'
memory: 1G
# For stdio mode instead, uncomment this line:
# command: ["python", "src/cortex/main.py"]
# For future HTTP API support
# ports:
# - "8000:8000"
# Use stdio for MCP protocol
stdin_open: true
tty: true
volumes:
cortex-data:
driver: local