实现远程VHD选择服务集成,支持从配置文件中读取远程服务URL 添加NX_INS USB设备检测功能,支持从USB设备扫描和替换VHD文件 新增配置文件解析和HTTP客户端请求功能 优化VHD文件管理逻辑,支持关键词匹配和文件替换
28 lines
673 B
YAML
28 lines
673 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
vhd-select-server:
|
|
image: lty271104/vhd-select-server:latest
|
|
container_name: vhd-select-server
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
# 配置文件持久化映射
|
|
- ./config:/app/config
|
|
# 可选:映射整个数据目录
|
|
- vhd-data:/app/data
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=8080
|
|
- CONFIG_PATH=/app/config
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/status"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
vhd-data:
|
|
driver: local |