From 044b308a7dc585edf378d2e9ff7c74bc9b6b3f7a Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 2 May 2023 10:31:53 -0700 Subject: [PATCH] setup logging config --- docker-compose.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e5df7ea..cd7adfd 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,4 +1,10 @@ version: '3' +x-log-config: &log-config + logging: + driver: json-file + options: + max-size: "50m" + max-file: "5" services: tor: container_name: fail-tor @@ -8,6 +14,7 @@ services: restart: unless-stopped ports: - 127.0.0.1:9050:9050 + <<: *log-config i2p: container_name: fail-i2p build: @@ -16,5 +23,4 @@ services: restart: unless-stopped ports: - 127.0.0.1:4444:4444 - volumes: - - ./data/i2pd:/home/i2p/.i2pd + <<: *log-config