From 361d42c9015afa134f98684e2d6b28171703229b Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sat, 10 Aug 2024 14:01:13 -0400 Subject: [PATCH] add container logging management --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 43c5243..504ef6b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,15 @@ # ############################################################################### +x-logging: &logging + logging: + driver: json-file + options: + mode: non-blocking + max-buffer-size: 100m + max-size: 10m + max-file: 1 + services: wis2-grep-backend: container_name: wis2-grep-backend @@ -49,6 +58,7 @@ services: retries: 100 networks: - wis2-grep-net + <<: *logging wis2-grep-broker: container_name: wis2-grep-broker @@ -59,6 +69,7 @@ services: - wis2-grep.env networks: - wis2-grep-net + <<: *logging wis2-grep-management: container_name: wis2-grep-management @@ -81,6 +92,7 @@ services: command: ["pywis-pubsub", "subscribe", "--config", "/app/docker/pywis-pubsub.yml", "--verbosity", "DEBUG"] networks: - wis2-grep-net + <<: *logging wis2-grep-api: container_name: wis2-grep-api @@ -101,6 +113,7 @@ services: restart: unless-stopped networks: - wis2-grep-net + <<: *logging volumes: wis2-grep-backend-data: