# Docker container log rotation configuration # Generated by Ansible /var/lib/docker/containers/*/*.log { daily rotate {{ log_max_files }} size {{ log_max_size }} compress delaycompress missingok notifempty create 0644 root root postrotate /bin/kill -USR1 $(cat /var/run/docker.pid 2>/dev/null) 2>/dev/null || true endscript } {{ docker_root }}/logs/*.log { daily rotate {{ log_max_files }} size {{ log_max_size }} compress delaycompress missingok notifempty create 0644 {{ docker_user }} {{ docker_group }} }