Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker-compose for logrotate
version: "3.2"
services:
logrotate:
image: blacklabelops/logrotate
restart: unless-stopped
volumes:
- "/home/yourpathtolog:/log"
- "./logrotate-status:/logrotate-status"
environment:
- "LOGS_DIRECTORIES=/log"
- "LOGROTATE_INTERVAL=hourly"
- "LOGROTATE_COPIES=10"
- "LOGROTATE_SIZE=100M"
- "LOGROTATE_COMPRESSION=compress"
- "LOGROTATE_STATUSFILE=/logrotate-status/logrotate.status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.