-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
This can be as simple as automatically creating a logrotate file:
https://blog.birkhoff.me/devops-truncate-docker-container-logs-periodically-to-free-up-server-disk-space/
And having this enabled/disabled via a global environment variable (DOKKU_LOGROTATE). If there is no value set, it is implied true. If it has a value of false, we delete the file. If it is set to true, we create the file. The value can be set via logs:set, and is output to logs:report.
On install of dokku, we'll set this value if it is not set.