From bc8caf530b797b3e1bb0ea5ed0047b08007db2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 18 Nov 2026 13:36:12 +0100 Subject: [PATCH] Configure Docker Compose logging with json-file driver Added logging configuration to all services in `compose.yaml` with json-file driver. Set max-size to 50m for `app` service and 10m for `nginx`, `postgres`, `relatorio`, and `gotenberg` services, with max-file of 3 for log rotation. --- templates/compose.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/templates/compose.yaml b/templates/compose.yaml index b6a1291..89e5b0e 100644 --- a/templates/compose.yaml +++ b/templates/compose.yaml @@ -24,6 +24,11 @@ services: - traefik - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" app: &defaultApp image: {{ registry_url }}/{{ registry_project }}/{{ chill_image_php_name }}:{{ item.chill_image_tag }} @@ -45,6 +50,11 @@ services: networks: - default restart: always + logging: + driver: json-file + options: + max-size: "50m" + max-file: "3" consumer: <<: *defaultApp @@ -92,12 +102,22 @@ services: networks: - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" relatorio: image: "{{ chill_image_relatorio }}" networks: - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" ###< chill-project/chill-bundles ### # sign-worker: @@ -136,6 +156,11 @@ services: networks: - default restart: always + logging: + driver: json-file + options: + max-size: "10m" + max-file: "3" networks: traefik: