Skip to content

Docker image running Alpine Linux and Logrotate.

License

Notifications You must be signed in to change notification settings

demyxsh/logrotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logrotate

demyxsh/logrotate Code Size Repository Size Watches Stars Forks Docker Pulls Architecture Alpine Logrotate Buy Me A Coffee Become a Patron!

Non-root Docker image running Alpine Linux and logrotate.

DEMYX LOGROTATE
PORT 3000
USER demyx
WORKDIR /demyx
CONFIG /etc/demyx
ENTRYPOINT demyx-entrypoint
TIMEZONE America/Los_Angeles

NOTICE

This repository has been moved to the organization demyxsh; please update the remote URL.

git remote set-url origin git@github.com:demyxsh/logrotate.git

Usage

logrotate:
    container_name: logrotate
    image: demyx/logrotate
    restart: unless-stopped
    environment:
      DEMYX_INTERVAL: weekly
      DEMYX_PATH: /var/log/demyx
      DEMYX_ROTATE: 52
      TZ: America/Los_Angeles
    volumes:
      - /logs:/var/log/demyx

logrotate.conf

${DEMYX_PATH}/*.log {
  su root root
  weekly
  missingok
  copytruncate
  rotate 52
  notifempty
  sharedscripts
}

Updates & Support

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

About

Docker image running Alpine Linux and Logrotate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published