-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (46 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (46 loc) · 1.45 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
version: '3.8'
services:
proxy:
build: .
ports:
- "8080:8080"
environment:
# Required: Set your API key
- API_KEY=${API_KEY:-${GREENPT_API_KEY}}
# API Provider Configuration
- TARGET_URL=${TARGET_URL:-https://api.greenpt.ai/v1}
# Model Mappings
# Default model used when no specific mapping matches
- DEFAULT_MODEL=${DEFAULT_MODEL:-gpt-4}
# Claude tier mappings (optional - defaults to DEFAULT_MODEL)
# Haiku: Quick tasks, summaries, titles
- HAIKU_MODEL=${HAIKU_MODEL:-}
# Sonnet: Main coding tasks
- SONNET_MODEL=${SONNET_MODEL:-}
# Opus: Complex reasoning, difficult problems
- OPUS_MODEL=${OPUS_MODEL:-}
# Server Configuration
- PORT=${PORT:-8080}
- HOST=${HOST:-0.0.0.0}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Example usage:
#
# 1. Create a .env file with your settings:
# API_KEY=your-api-key
# TARGET_URL=https://api.greenpt.ai/v1
# DEFAULT_MODEL=qwen3-coder-30b-a3b-instruct
# HAIKU_MODEL=green-r-raw
# SONNET_MODEL=qwen3-coder-30b-a3b-instruct
# OPUS_MODEL=qwen3-235b-a22b-instruct-2507
#
# 2. Run:
# docker-compose up -d
#
# 3. Or set variables inline:
# API_KEY=your-key docker-compose up -d