-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (50 loc) · 2.37 KB
/
docker-compose.yml
File metadata and controls
50 lines (50 loc) · 2.37 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
version: '3'
services:
claude-wrapper:
build: .
ports:
- "8000:8000"
volumes:
- ~/.claude:/root/.claude
- ~/.claude-wrapper:/root/.claude-wrapper # For session tracking
# - .:/app # Optional for dev - uncomment to mount code for hot reload
environment:
# Claude CLI Configuration
- CLAUDE_CLI_PATH=${CLAUDE_CLI_PATH:-claude}
# Gemini CLI Configuration
- GEMINI_CLI_PATH=${GEMINI_CLI_PATH:-gemini}
- GEMINI_MODEL=${GEMINI_MODEL:-gemini-2.5-pro}
# Qwen CLI Configuration
- QWEN_CLI_PATH=${QWEN_CLI_PATH:-qwen}
- QWEN_MODEL=${QWEN_MODEL:-qwen3-coder-plus}
- QWEN_MODELS=${QWEN_MODELS:-auto,qwen3-coder-plus,qwen3-coder,qwen3-coder-480b-a35b-instruct}
# API Configuration
- PORT=${PORT:-8000}
- API_KEY=${API_KEY:-}
# Timeout Configuration
- MAX_TIMEOUT=${MAX_TIMEOUT:-600000}
# CORS Configuration
- CORS_ORIGINS=${CORS_ORIGINS:-["*"]}
# Logging Configuration
- DEBUG_MODE=${DEBUG_MODE:-false}
- VERBOSE=${VERBOSE:-false}
# Session Cleanup Configuration
- CLEANUP_SESSIONS=${CLEANUP_SESSIONS:-true}
- CLEANUP_DELAY_MINUTES=${CLEANUP_DELAY_MINUTES:-720}
# SSE Keep-alive
- SSE_KEEPALIVE_INTERVAL=${SSE_KEEPALIVE_INTERVAL:-30}
# XML Detection Configuration
- XML_CONFIDENCE_THRESHOLD=${XML_CONFIDENCE_THRESHOLD:-5.0}
- XML_KNOWN_TOOLS=${XML_KNOWN_TOOLS:-attempt_completion,ask_followup_question,read_file,write_to_file,run_command,str_replace_editor,search_files,list_files,new_task,apply_diff,execute_command,switch_mode,update_todo_list}
# Rate Limiting Configuration
- RATE_LIMIT_ENABLED=${RATE_LIMIT_ENABLED:-true}
- RATE_LIMIT_PER_MINUTE=${RATE_LIMIT_PER_MINUTE:-30}
- RATE_LIMIT_CHAT_PER_MINUTE=${RATE_LIMIT_CHAT_PER_MINUTE:-10}
- RATE_LIMIT_DEBUG_PER_MINUTE=${RATE_LIMIT_DEBUG_PER_MINUTE:-2}
- RATE_LIMIT_AUTH_PER_MINUTE=${RATE_LIMIT_AUTH_PER_MINUTE:-10}
- RATE_LIMIT_SESSION_PER_MINUTE=${RATE_LIMIT_SESSION_PER_MINUTE:-15}
- RATE_LIMIT_HEALTH_PER_MINUTE=${RATE_LIMIT_HEALTH_PER_MINUTE:-30}
# Production mode example - uncomment the line below to run without hot reload
# command: ["poetry", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
# Note: The default Dockerfile CMD includes --reload for development mode
restart: unless-stopped