mirror of
https://github.com/Thumbscrew/nginx-docker-compose.git
synced 2025-01-18 09:35:45 +00:00
add log limits to container
This commit is contained in:
parent
6a3cfb5253
commit
167062ead8
@ -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
|
||||
|
@ -3,4 +3,6 @@ VOLUME_PATH=/data/nginx
|
||||
PROXY_NETWORK=proxy
|
||||
|
||||
# Nginx settings
|
||||
NGINX_TAG=stable
|
||||
NGINX_TAG=stable
|
||||
LOG_MAX_SIZE=100M
|
||||
LOG_MAX_FILE=3
|
Loading…
Reference in New Issue
Block a user