Files
i-tools/docker-compose.yml
yfan 3d175d75af
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
first commit
2026-01-30 16:57:44 +08:00

31 lines
859 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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