Adding fallback values for log limits if not set in ENV.

This commit is contained in:
Alexey Skobkin 2019-11-23 02:37:35 +03:00
parent e24006fc96
commit 6d4a7fda85
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7
3 changed files with 6 additions and 6 deletions

View file

@ -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}"

View file

@ -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:

View file

@ -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}"