File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -54,3 +54,9 @@ NGINX_FILES_PATH=/path/to/your/nginx/data
5454#
5555# USE_NGINX_CONF_FILES=true
5656
57+ #
58+ # Maximum containers logfile size
59+ #
60+ NGINX_MAX_LOG_SIZE = 100m
61+ NGINX_GEN_MAX_LOG_SIZE = 25m
62+ NGINX_LETSENCRYPT_MAX_LOG_SIZE = 25m
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ services:
1515 - ${NGINX_FILES_PATH}/html:/usr/share/nginx/html
1616 - ${NGINX_FILES_PATH}/certs:/etc/nginx/certs:ro
1717 - ${NGINX_FILES_PATH}/htpasswd:/etc/nginx/htpasswd:ro
18+ logging :
19+ options :
20+ max-size : ${NGINX_MAX_LOG_SIZE:-100m}
1821
1922 nginx-gen :
2023 image : jwilder/docker-gen
@@ -29,6 +32,9 @@ services:
2932 - ${NGINX_FILES_PATH}/htpasswd:/etc/nginx/htpasswd:ro
3033 - /var/run/docker.sock:/tmp/docker.sock:ro
3134 - ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
35+ logging :
36+ options :
37+ max-size : ${NGINX_GEN_MAX_LOG_SIZE:-25m}
3238
3339 nginx-letsencrypt :
3440 image : jrcs/letsencrypt-nginx-proxy-companion
@@ -43,6 +49,9 @@ services:
4349 environment :
4450 NGINX_DOCKER_GEN_CONTAINER : ${DOCKER_GEN}
4551 NGINX_PROXY_CONTAINER : ${NGINX_WEB}
52+ logging :
53+ options :
54+ max-size : ${NGINX_LETSENCRYPT_MAX_LOG_SIZE:-25m}
4655
4756networks :
4857 default :
You can’t perform that action at this time.
0 commit comments