/docker_logrotate

Docker image for logrotate

Primary LanguageShellApache License 2.0Apache-2.0

Vlad's Logrotate

Vlad's Logrotate Image

Environment variables

  • LOGROTATE_DIRECTORIES: Space separated list of directories (defaults to /logs/*.log)
  • LOGROTATE_INTERVAL: rotate logfile according to the following intervals: hourly, daily, weekly, monthly (defaults to daily)
  • LOGROTATE_KEEP: how many intervals to keep (defaults to 14)
  • CRON_INTERVAL: how often to run logrotate according to the following intervals: hourly, daily, weekly, monthly (defaults to daily)
  • TIME_ZONE: sets the time zone (optional)
  • TIME_SERVER: sets the NTP time server (optional)

Usage

docker run -d \
  -v ./remote_logs:/logs
  vladgh/logrotate