agstrike / silverstrike

Finance Management Made Easy
https://silverstrike.org
MIT License
424 stars 100 forks source link

Log Rotation #125

Closed edoubleoo closed 2 years ago

edoubleoo commented 3 years ago

Hi AGStrike,

I have been using SilverStike for over the past year, and it works great. There is an issue with growing size of the Docker container's log file. I would prefer the log file to purge after a number of days or rotate in order to not consume the whole HDD.

Please advise if this is possible and process to recitify tthis issue.

Thanks.

simhnna commented 3 years ago

that's nice to hear. Not sure which log file you are referring to.
If it's the actual logs of the containers, you should check the documentation of your linux distribution for how to configure rotation of docker logs.

If you mean the actual container volume (uploaded files during import of transactions aren't deleted automatically for instance) or you could have configured logging of the django app itself to a path within the container, you should be able to reclaim space by restarting the containers. Just be sure you don't have your database in a container but in a separate volume so it survives container restarts