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"