From 8d1d1f18a873e007b8d79a161aabc7f3606ef722 Mon Sep 17 00:00:00 2001 From: ShukeBta Date: Fri, 12 Jun 2026 04:32:47 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=99=90=E5=88=B6=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BD=93=E7=A7=AF=E5=B9=B6=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=20.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - docker-compose 增加 json-file 日志上限(10m x 3),防止日志无限增长 持续消耗宿主机磁盘与 IO - .gitignore 补充 .tmp-* 运行产物、downloads/、media/、*.pid - 清理仓库目录中遗留的临时日志、诊断脚本与旧二进制(约 60MB,均未被 git 跟踪) --- .gitignore | 7 +++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index 5bbbb17..fbb7b7d 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,10 @@ config.yaml # Editor backups *~ .tmp_* + +# Runtime / local-only artifacts (清理补充) +.tmp-live-backups/ +.tmp-* +downloads/ +media/ +*.pid diff --git a/docker-compose.yml b/docker-compose.yml index 46afb26..d77f696 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"