chore: sync local updates

This commit is contained in:
2026-05-16 19:03:32 +08:00
parent 360a5f15b9
commit aff88ba97d
47 changed files with 3651 additions and 12175 deletions

View File

@@ -1,3 +1,5 @@
# 生产:先在 Windows 运行 build-linux-amd64.bat 生成 dist/mengyaping-backend再 docker compose build镜像内不再编译 Go
# 若需在服务器上用源码构建镜像docker build -f Dockerfile.source -t mengyaping-backend:source .
version: '3.8'
services:
@@ -16,11 +18,13 @@ services:
# 服务器配置
- SERVER_PORT=8080
- SERVER_HOST=0.0.0.0
# 监控配置
- MONITOR_INTERVAL=5m
# 监控默认值(首次写入 MySQL monitor_kv周期也可在管理后台改须为 10/20/30/60/180/360 分钟之一)
- MONITOR_INTERVAL=30m
- MONITOR_TIMEOUT=10s
- MONITOR_RETRY_COUNT=3
- MONITOR_HISTORY_DAYS=7
# 若设置则覆盖数据库 monitor_kv 中的 admin_token部署密文推荐用环境变量
- ADMIN_TOKEN=shumengya520
networks:
- mengyaping-network
healthcheck: