chore: 限制容器日志体积并补全 .gitignore

- docker-compose 增加 json-file 日志上限(10m x 3),防止日志无限增长
  持续消耗宿主机磁盘与 IO
- .gitignore 补充 .tmp-* 运行产物、downloads/、media/、*.pid
- 清理仓库目录中遗留的临时日志、诊断脚本与旧二进制(约 60MB,均未被
  git 跟踪)
This commit is contained in:
ShukeBta
2026-06-12 04:32:47 +00:00
parent 91df7521ce
commit 8d1d1f18a8
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -60,3 +60,10 @@ config.yaml
# Editor backups
*~
.tmp_*
# Runtime / local-only artifacts (清理补充)
.tmp-live-backups/
.tmp-*
downloads/
media/
*.pid
+8
View File
@@ -76,3 +76,11 @@ services:
timeout: 10s
retries: 5
start_period: 30s
# 限制容器日志体积:默认 json-file 驱动不设上限,
# 长期运行会持续吃宿主机磁盘与 IO。
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"