chore: sync local updates
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user