Skip to content
Docker image running Alpine Linux and Logrotate.
Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
Dockerfile
LICENSE
README.md
demyx-entrypoint.sh
travis.sh

README.md

logrotate

Build Status Docker Pulls Architecture Alpine Logrotate Buy Me A Coffee

logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.

TITLE DESCRIPTION
ENTRYPOINT dumb-init demyx-entrypoint
TIMEZONE America/Los_Angeles

Updates & Support

Code Size Repository Size Watches Stars Forks

  • Auto built weekly on Sundays (America/Los_Angeles)
  • Rolling release updates
  • For support: #demyx

Usage

logrotate:
    container_name: logrotate
    image: demyx/logrotate
    restart: unless-stopped
    environment:
      DEMYX_LOG: /var/log/demyx
      TZ: America/Los_Angeles
    volumes:
      - ./logs:/var/log/demyx

demyx.conf

${DEMYX_LOG}/*.log {
  su root root
  weekly
  missingok
  copytruncate
  rotate 52
  notifempty
  sharedscripts
}
You can’t perform that action at this time.