mmcc-xx / BirdCAGE

181 stars 18 forks source link

Delete temp files based on retention setting #84

Open mattprecious opened 6 months ago

mattprecious commented 6 months ago

I configured the backend container using the tmpfs settings in the provided compose file:

tmpfs:
  - /tmp:size=16M

This space is only freed after a container is stopped, so after running the container for 25 days my /tmp directory filled up. I have increased the size to 512M, which should be long enough that there will be a natural container stop before it fills up, but this feels wasteful since these files are only needed for a short period of time.

It would be nice if the app cleared out old temp files automatically, either with a reasonable hard-coded time, a new setting, or even just the current retention setting (which I have set to 7 days).