docker配置

This commit is contained in:
ChuXun
2026-01-29 05:57:54 +08:00
parent 9e65266b7e
commit f81af19a0a
7 changed files with 282 additions and 10 deletions

View File

@@ -54,6 +54,24 @@ python3 monitor.py
# 按 Ctrl+B 然后按 D 离开会话
```
## Docker 部署(推荐)
> 运行日志和缓存文件会写入 `./data/`,配置文件挂载为只读。
```bash
# 1) 准备配置文件(同级目录下的 config.ini
# 2) 启动
docker compose up -d --build
# 查看日志
docker logs -f gpa-monitor
```
**测试模式:**
```bash
docker compose run --rm gpa-monitor python /app/monitor.py --config /data/config.ini --test
```
## 功能特点
**智能检测** - 检测新增课程(而非简单的页面变化)
@@ -193,4 +211,4 @@ tmux attach -t grade_monitor
## 许可证
MIT License
MIT License