/var/log/docfast/*.log {
    daily
    rotate 7
    compress
    delaycompress
    missingok
    notifempty
    create 644 root root
    postrotate
        # Restart docker container to reopen log files
        docker restart docfast-docfast-1 >/dev/null 2>&1 || true
    endscript
}