first commit

This commit is contained in:
cyy_mac
2026-03-24 22:30:11 +08:00
commit 69a660bfeb
10 changed files with 593 additions and 0 deletions

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: '3'
services:
monitor:
build: .
restart: unless-stopped
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./last_notifications.json:/app/last_notifications.json
- ./monitor.log:/app/monitor.log
# 环境变量方式配置邮件(可选,优先级高于 config.yaml
# environment:
# - SMTP_HOST=smtp.gmail.com
# - SMTP_PORT=587
# - SMTP_USER=your_email@gmail.com
# - SMTP_PASSWORD=your_app_password