From a20b15f9f7d704fe6ae4eda5e8e1c7d17fe35269 Mon Sep 17 00:00:00 2001 From: Michael Buntarman Date: Thu, 26 Nov 2026 14:32:16 +0700 Subject: [PATCH] chore(gateway): keep a day of gateway logs on the box --- deployments/gateway/gateway-compose.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deployments/gateway/gateway-compose.yaml b/deployments/gateway/gateway-compose.yaml index f15ea25c..f80e9ea7 100644 --- a/deployments/gateway/gateway-compose.yaml +++ b/deployments/gateway/gateway-compose.yaml @@ -32,7 +32,11 @@ services: target: /app/kgw-config.pkl logging: driver: "json-file" + # keep at least a day: a busy gateway writes about 200 MB an hour, and + # compressed rotated files take about 5 MB each, so 72 files hold + # about 30 hours in about 0.5 GB of disk options: max-size: "100m" - max-file: "2" + max-file: "72" + compress: "true" tag: "{{.Name}}" \ No newline at end of file