Adding initial files
This commit is contained in:
2
roles/docker/templates/docker.conf
Normal file
2
roles/docker/templates/docker.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
if $syslogtag contains 'docker/' then /var/log/docker.log
|
||||
& ~
|
||||
12
roles/docker/templates/logrotate_docker
Normal file
12
roles/docker/templates/logrotate_docker
Normal file
@@ -0,0 +1,12 @@
|
||||
/var/log/docker.log
|
||||
{
|
||||
rotate 7
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
compress
|
||||
postrotate
|
||||
invoke-rc.d rsyslog rotate > /dev/null
|
||||
endscript
|
||||
}
|
||||
Reference in New Issue
Block a user