Vlad's Logrotate Image
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 todaily
)LOGROTATE_KEEP
: how many intervals to keep (defaults to14
)CRON_INTERVAL
: how often to run logrotate according to the following intervals:hourly
,daily
,weekly
,monthly
(defaults todaily
)TIME_ZONE
: sets the time zone (optional)TIME_SERVER
: sets the NTP time server (optional)
docker run -d \
-v ./remote_logs:/logs
vladgh/logrotate