add log limits to container

This commit is contained in:
James 2022-06-02 14:42:45 +01:00
parent 6a3cfb5253
commit 167062ead8
2 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,11 @@ services:
context: ./
args:
NGINX_TAG: ${NGINX_TAG-stable}
logging:
driver: "json-file"
options:
max-size: ${LOG_MAX_SIZE-100M}
max-file: ${LOG_MAX_FILE-3}
restart: unless-stopped
networks:
- proxy

View File

@ -4,3 +4,5 @@ PROXY_NETWORK=proxy
# Nginx settings
NGINX_TAG=stable
LOG_MAX_SIZE=100M
LOG_MAX_FILE=3