aggiornato il Dockerfile

aggiunti gli script per lanciarlo tramite container
This commit is contained in:
Michele 2017-03-09 15:37:32 +01:00
parent b02fe14d57
commit ae82c15f70
4 changed files with 48 additions and 2 deletions

28
logrotate.cfg Normal file
View file

@ -0,0 +1,28 @@
/opt/mongodb/mongod/log/*.log
{
daily
rotate 10
maxsize 10M
compress
delaycompress
missingok
notifempty
sharedscripts
copytruncate
postrotate
/usr/bin/docker kill -s SIGUSR1 mongod 2> /dev/null || true
endscript
}
/opt/llmongo/log/*.log
{
daily
maxsize 5M
rotate 8
compress
delaycompress
missingok
notifempty
sharedscripts
copytruncate
}