meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:docker:log [2025/03/17 21:03] niziaklinux:docker:log [2026/03/01 17:35] (current) niziak
Line 17: Line 17:
     delaycompress     delaycompress
     copytruncate     copytruncate
 +}
 +</file>
 +
 +
 +===== apache logs =====
 +
 +<file txt /etc/logrotate.d/docker-apache>
 +/var/log/apache2/*.log {
 +  weekly
 +  missingok
 +  rotate 50
 +  dateext
 +  compress
 +  delaycompress
 +  notifempty
 +  sharedscripts
 +  postrotate
 +    cd /root/dockers \
 +      && /usr/bin/docker compose kill -s HUP dokuwiki
 +  endscript
 } }
 </file> </file>