Overlay2 folder growth fast
Hi! I use community docker compose file. I noticed that var/lib/docker/overlay2 folder in grows. I deleted log files. It is around 47 GB now. Is there any tips what to change in docker-compose file to prevent this fast growth?
8 Replies
One small suggestion is to use TTL in MongoDB collections messages, execution-details, logs, notifications, so that documents get cleared when expireAt date is reached
@Support I am not experienced user of Novu. I would be glad to get some explanation. I use self-hosted version of Novu. In GitHub I found this message. Now my self-hosted version save in-app notifications for 6 month by default. Also I can disable this feature by env variable. Is it correct?

If my understanding is correct then is there any way to decrease this time? From 6-month to 1-week for example. And how I can do it?
Hey kh MS, this is a bit old thread, you can try that env variable, but I am not sure if that works
@Pawan Jain Thank you! So to follow your advice I must do something outside the docker compose file? Where and what? If there is some link to a documentation or something else it would be nice
@Kh. M-S.
Unfortunately, we don't have documentation for this. you can try in docker compose file
@Pawan Jain I would do it if I know what to do. How I can write variables if I even do not know their names. I want to keep notifications inly for 3 weeks. Please give some example of variable I can use in docker. Or how to figure out it