Closed adilinden closed 2 years ago
i would advise using log rotate (this might help https://docs.rackspace.com/support/how-to/understanding-logrotate-utility/) below is an example of what you use for a postrotate script to help the container let go of the log file.
daily
rotate 7
size 10M
compress
delaycompress
postrotate
if test $(docker ps -q --filter "name=lancache_monolithic_1"); then docker exec lancache_monolithic_1 sh -c 'kill -USR1 $(cat /var/run/nginx.pid)'; fi
endscript
}```
It works! Thanks!
Describe the issue you are having
Log files are simply growing (forever?) I see there is the
LOGFILE_RETENTION
variable but it seems to clean up old files, it doesn't actually trigger the creation of new log files. CurrentlyLOGFILE_RETENTION
is not specified in.env
, so assuming the 3560 default value is in effect.How are you running the container(s)
DNS Configuration
DNS is part of monolithic
Output of container(s)