From 1265e69412a5495a03cbc366bdb2a59c7a87e1e6 Mon Sep 17 00:00:00 2001 From: lekss361 Date: Thu, 17 Sep 2026 13:08:15 +0000 Subject: [PATCH] =?UTF-8?q?chore(forgejo):=20=D0=BE=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=87=D0=B8=D1=82=D1=8C=20=D1=80=D0=B0=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D1=80=20json-=D0=BB=D0=BE=D0=B3=D0=B0=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D0=B9=D0=BD=D0=B5=D1=80=D0=B0=20(#3587)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Лог forgejo дорос до 3.35 ГиБ за 23 дня без ротации. 50m x 3 = потолок 150 МБ. Co-authored-by: lekss361 Co-committed-by: lekss361 --- ops/forgejo/docker-compose.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ops/forgejo/docker-compose.yml b/ops/forgejo/docker-compose.yml index d34ec78e..155b18b5 100644 --- a/ops/forgejo/docker-compose.yml +++ b/ops/forgejo/docker-compose.yml @@ -70,6 +70,18 @@ services: FORGEJO__security__INSTALL_LOCK: "true" volumes: - ./data/forgejo:/data + # Container log cap. Measured 2026-09-17: this container's json log had + # grown to 3.35 GiB in 23 days (~150 MB/day) with no rotation at all, + # the single largest log on the host by two orders of magnitude. Docker's + # json-file driver never rotates unless told to, and there is no + # /etc/docker/daemon.json on this VM to set a global default. 50m x 3 + # caps this container at 150 MB; recreating it also drops the old + # unbounded file. + logging: + driver: json-file + options: + max-size: "50m" + max-file: "3" ports: - "2222:22" networks: