aggiornato il Dockerfile
aggiunti gli script per lanciarlo tramite container
This commit is contained in:
parent
b02fe14d57
commit
ae82c15f70
4 changed files with 48 additions and 2 deletions
28
logrotate.cfg
Normal file
28
logrotate.cfg
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue