✨ 跟项目能跑起来就差这一步!这次狠狠修了一波: 🩺 修复40+损坏Python文件 - 补全所有缺少的class定义头(plugin-loader-pro、code-reviewer、 http-api/ws-api/http-tcp、webui/dashboard/log-terminal 等) - 修复中文括号、字符串未闭合、缩进错乱等语法问题 🔗 创建符号链接 plugin_bridge -> plugin-bridge - 解决Python模块路径不支持连字符的问题 - 关联修复 plugin-bridge 中错误的 import 路径 🧹 清理废弃代码 - 删除 oss/tui/ 目录(已废弃) - 清理所有 __pycache__ 和 .pyc 缓存文件 ✅ 全量语法检查通过,零错误! 📋 ai.md 新增代码审计报告和分阶段修复计划 🗺️ 所有插件 use() 调用现在走统一路径
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
services:
|
|
nebulashell:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: nebulashell
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080" # HTTP API + 网站
|
|
- "8081:8081" # WebSocket
|
|
- "8082:8082" # HTTP TCP
|
|
volumes:
|
|
# 插件热更新(无需重建镜像)
|
|
- ./store/NebulaShell:/app/store/NebulaShell:ro
|
|
- ./store/@{Falck}:/app/store/@{Falck}:ro
|
|
# 数据持久化
|
|
- nebulashell-data:/app/data
|
|
# 配置可覆盖
|
|
- ./config.yaml:/app/config.yaml:ro
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 5s
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
cpus: "1.0"
|
|
reservations:
|
|
memory: 128M
|
|
|
|
volumes:
|
|
nebulashell-data:
|
|
driver: local
|