/var/log/platform/django.log {
    daily
    rotate 30
    compress
    delaycompress
    notifempty
    missingok
    create 0644 appuser appuser
    sharedscripts
    postrotate
        docker exec platform_web killall -HUP python || true
    endscript
}

/var/log/platform/django_errors.log {
    daily
    rotate 30
    compress
    delaycompress
    notifempty
    missingok
    create 0644 appuser appuser
    sharedscripts
    postrotate
        docker exec platform_web killall -HUP python || true
    endscript
}

/var/log/platform/celery.log {
    daily
    rotate 30
    compress
    delaycompress
    notifempty
    missingok
    create 0644 appuser appuser
    sharedscripts
    postrotate
        docker exec platform_celery killall -HUP celery || true
    endscript
}

/var/log/platform/django_json.log {
    daily
    rotate 30
    compress
    delaycompress
    notifempty
    missingok
    create 0644 appuser appuser
    sharedscripts
    postrotate
        docker exec platform_web killall -HUP python || true
    endscript
}

