From 6d4a7fda8572d864a40a1ce1a1eb0297c3b78257 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 23 Nov 2019 02:37:35 +0300 Subject: [PATCH] Adding fallback values for log limits if not set in ENV. --- magneticod/docker-compose.yml | 4 ++-- murmur/docker-compose.yml | 4 ++-- yacy/docker-compose.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/magneticod/docker-compose.yml b/magneticod/docker-compose.yml index 811117a..df39b73 100644 --- a/magneticod/docker-compose.yml +++ b/magneticod/docker-compose.yml @@ -18,5 +18,5 @@ services: logging: driver: "json-file" options: - max-size: "${LOG_MAX_SIZE}" - max-file: "${LOG_MAX_FILE}" + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}" diff --git a/murmur/docker-compose.yml b/murmur/docker-compose.yml index 5f93945..4537ebb 100644 --- a/murmur/docker-compose.yml +++ b/murmur/docker-compose.yml @@ -20,8 +20,8 @@ services: logging: driver: "json-file" options: - max-size: "${LOG_MAX_SIZE}" - max-file: "${LOG_MAX_FILE}" + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}" volumes: murmur-data: diff --git a/yacy/docker-compose.yml b/yacy/docker-compose.yml index ceab887..0b4e2e9 100644 --- a/yacy/docker-compose.yml +++ b/yacy/docker-compose.yml @@ -15,5 +15,5 @@ services: logging: driver: "json-file" options: - max-size: "${LOG_MAX_SIZE}" - max-file: "${LOG_MAX_FILE}" + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}"