Skip to content

stakater-docker/logrotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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