Something went wrong. Try again.
Barazo Docker Compose templates for self-hosting barazo.forum
Something went wrong. Try again.
fix(deploy): prune unused Docker images after deploy and add log rotation (#59) master
After each staging deploy, run `docker image prune -f` to remove dangling images left behind by the previous pull. Without this, every deploy accumulates ~800MB of unreferenced layers, eventually filling the VPS disk (as happened with 146 images consuming 29GB on a 38GB disk). Add json-file log rotation (10MB x 3 files) to all services via a shared x-logging anchor. Docker's default json-file driver has no size limit, so container logs can grow unbounded on long-running instances.
Author Guido X Jansen Committer GitHub Date (Mar 3, 2026, 1:33 PM UTC) Commit 742e6547 742e6547626c175a0757112f611e98d55926d786 Parent 38a2c9d9 38a2c9d95c20950781749419ee9840ee1a9409a0