first commit
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
Sync to CNB / sync (push) Has been cancelled
Delete old workflow runs / del_runs (push) Has been cancelled
Upstream Sync / Sync latest commits from upstream repo (push) Has been cancelled

This commit is contained in:
2026-01-30 16:57:44 +08:00
commit 3d175d75af
119 changed files with 35834 additions and 0 deletions

30
docker-compose.yml Normal file
View 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