-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 1.01 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
services:
qwen-proxy:
build: .
ports:
- "${PORT:-8080}:${PORT:-8080}"
volumes:
- ~/.qwen:/root/.qwen
- ~/.local/share/qwen-proxy:/root/.local/share/qwen-proxy
environment:
- NODE_ENV=production
- PORT=${PORT:-8080}
- HOST=${HOST:-0.0.0.0}
- DEBUG_LOG=${DEBUG_LOG:-false}
- LOG_FILE_LIMIT=${LOG_FILE_LIMIT:-20}
- STREAM=${STREAM:-false}
- DEFAULT_ACCOUNT=${DEFAULT_ACCOUNT:-}
- QWEN_CODE_AUTH_USE=${QWEN_CODE_AUTH_USE:-true}
- API_KEY=${API_KEY:-}
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"node",
"-e",
"const req = require('http').request({ hostname: 'localhost', port: '${PORT:-8080}', path: '/health', method: 'GET', headers: { 'X-API-Key': '${API_KEY:-}' } }, (res) => { process.exit(res.statusCode === 200 ? 0 : 1) }); req.on('error', () => process.exit(1)); req.end();",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s