From 686c926a30f18e517c615ae6683c3660c7dbf7f6 Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 5 Nov 2026 09:41:10 +0300 Subject: [PATCH] chore(docker): the container's log is rotated gunicorn writes a line of its access log for every request to the container's output, and Docker's json-file log driver keeps all of it by default: an open VM list alone adds a line every 5 seconds until the disk is full. The compose file now keeps 5 files of 10 MB, as the panel's own log. --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index d6ce3171..319cc50c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,12 @@ services: restart: unless-stopped # above my_init's 80 s, which is above the worker's 60 s drain stop_grace_period: 95s + # every request is a line of gunicorn's access log: kept to 5 files of 10 MB, as the panel's own log + logging: + driver: json-file + options: + max-size: 10m + max-file: "5" ports: - "80:80" environment: