forked from RichardAtCT/claude-code-openai-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 1.78 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
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}
- CLAUDE_CWD=${CLAUDE_CWD:-/app}
# 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}
# Chat Mode Session Cleanup Configuration
- CHAT_MODE_CLEANUP_SESSIONS=${CHAT_MODE_CLEANUP_SESSIONS:-true}
- CHAT_MODE_CLEANUP_DELAY_MINUTES=${CHAT_MODE_CLEANUP_DELAY_MINUTES:-720}
# SSE Keep-alive
- SSE_KEEPALIVE_INTERVAL=${SSE_KEEPALIVE_INTERVAL:-30}
# 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