mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-05 13:06:36 +08:00
chore: 限制容器日志体积并补全 .gitignore
- docker-compose 增加 json-file 日志上限(10m x 3),防止日志无限增长 持续消耗宿主机磁盘与 IO - .gitignore 补充 .tmp-* 运行产物、downloads/、media/、*.pid - 清理仓库目录中遗留的临时日志、诊断脚本与旧二进制(约 60MB,均未被 git 跟踪)
This commit is contained in:
@@ -60,3 +60,10 @@ config.yaml
|
|||||||
# Editor backups
|
# Editor backups
|
||||||
*~
|
*~
|
||||||
.tmp_*
|
.tmp_*
|
||||||
|
|
||||||
|
# Runtime / local-only artifacts (清理补充)
|
||||||
|
.tmp-live-backups/
|
||||||
|
.tmp-*
|
||||||
|
downloads/
|
||||||
|
media/
|
||||||
|
*.pid
|
||||||
|
|||||||
@@ -76,3 +76,11 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
|
|
||||||
|
# 限制容器日志体积:默认 json-file 驱动不设上限,
|
||||||
|
# 长期运行会持续吃宿主机磁盘与 IO。
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|||||||
Reference in New Issue
Block a user