We have 2 Docker containers so far: postgresql and webapp.
postgresql writes PostgreSQL's log to file.
webapp writes Nginx and Django logs to file.
All these log files are in a shared volume (shared with the host and potentially other containers) and can grow indefinitely.
Possible solutions:
configure logrotate daemons in each container;
configure a logrotate daemon in the host;
launch a new container meant to be used for backup and maintenance tasks (like logrotate).
We have 2 Docker containers so far: postgresql and webapp.
postgresql
writes PostgreSQL's log to file.webapp
writes Nginx and Django logs to file. All these log files are in a shared volume (shared with the host and potentially other containers) and can grow indefinitely.Possible solutions: