first commit
Some checks failed
Some checks failed
This commit is contained in:
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
i-tools:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/nick-x86/i-tools:latest
|
||||
container_name: i-tools
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
# 测试点生成-大模型(可选,未设置则用本地智能算法)
|
||||
- ENABLE_AI=${ENABLE_AI:-false}
|
||||
- DASHSCOPE_API_KEY=${DASHSCOPE_API_KEY:-}
|
||||
- QWEN_MODEL=${QWEN_MODEL:-qwen-max}
|
||||
# 健康检查
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
# 资源限制(仅内存,CPU限制在某些环境下不支持)
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
reservations:
|
||||
memory: 256M
|
||||
Reference in New Issue
Block a user