Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 539 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 539 Bytes

Dockerized Logrotate

How to run

  • Your logrotate config files should be mapped in the /etc/logrotate.d inside the container
  • The cron job will run daily at 00:00:00 UTC time by default. You can override the cron schedule by overwriting the CRON_SCHEDULE environment variable.
  • Run the following to run the docker container.
    docker run -d -v $(pwd)/config/:/etc/logrotate.d/ stakater/logrotate

References