Commit Graph
4 Commits
Author SHA1 Message Date
xiaozhou233 eaecdaf9f5 feat: 控制面板概览页新增 Docker 容器监控
后端新增 GET /api/docker/stats,走 Docker Engine API(unix socket)读取容器状态、CPU/内存/网络/磁盘与端口;前端 /dashboard 概览页展示汇总与容器列表,5 秒自动刷新;compose 只读挂载 docker.sock 并通过 group_add 注入宿主机 docker 组 GID。
2026-10-06 16:12:21 +08:00
xiaozhou233 5b3f40fc7b feat: 后端由 Spring Boot 重写为 Go
- backend: 使用 Go + gopsutil 重写,接口 GET /api/system/stats 结构与前端保持一致
- 内存占用从 ~178MiB 降至 ~4MiB,镜像从 200MB+ 降至 15MB
- Dockerfile 改为多阶段构建,运行镜像使用 distroless
- 前端 os.javaVersion 字段改为 os.goVersion,标签由 Java 改为 Go
- docker-compose: 为 backend 与 frontend 增加 mem_limit
2026-10-06 13:38:25 +08:00
xiaozhou233 c9c7823962 feat: 添加 Dockerfile 以支持构建和运行应用程序 2026-08-10 18:43:47 +08:00
xiaozhou233 9dd1bc3cf9 feat: Initialize backend with Spring Boot and Gradle
- Add Gradle wrapper files for project setup.
- Create main application class for Spring Boot.
- Implement CORS configuration for API.
- Add system information controller and service to fetch system stats.
- Define data transfer objects for system stats.
- Configure application properties for server port and name.
- Add unit test for application context loading.
- Create example environment file for frontend API base URL.
2026-08-09 22:33:06 +08:00