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 |
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
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
${DEMYX_PATH}/*.log {
su root root
weekly
missingok
copytruncate
rotate 52
notifempty
sharedscripts
}
- Auto built weekly on Saturdays (America/Los_Angeles)
- Rolling release updates
- For support: #demyx