Docker image to restart Logspout on Docker Cloud whenever Docker Cloud's log rotation truncated the logs (which resulted in Logspout not logging from affected containers any more).
Once a container's log reached 10MB, logspout essetialls stops logging this container, which could only be fixed by either restarting the container, or logspout.
We monitor the Docker logs directory
/var/lib/docker/containers and sum up the size of all
*.log files in its subdirectories. When the overall size has been reduced since the last check, we restart the
logspout container using the Docker Cloud API.
Add a link to the
links: - logspout
Please note: We require the service to be named
roles: - global
volumes: - '/var/lib/docker/containers:/var/lib/docker/containers:ro'
FREQ_SECS- Seconds to wait between polling the log sizes (default: