-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (51 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
59 lines (51 loc) · 1.34 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
version: '3.8'
services:
contextoptimizer:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
# App Configuration
- DEBUG=false
- LOG_LEVEL=INFO
- LOG_FILE=/app/logs/context_optimizer.log
# Server Configuration
- HOST=0.0.0.0
- PORT=8000
# File Storage
- DATA_DIR=/app/data
- SESSION_DIR=/app/data/sessions
- LOG_DIR=/app/logs
- MAX_FILE_SIZE=10485760
# LLM Configuration
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o}
- MAX_TOKENS=4000
- TEMPERATURE=0.1
# LLM Cache Configuration
- USE_LLM_CACHE=true
- LLM_CACHE_TTL=3600
# CORS Configuration
- ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8000
# Frontend Configuration
- NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
volumes:
# Persist session data
- ./data:/app/data
# Persist logs
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
data:
driver: local
logs:
driver: local