synzen / MonitoRSS

MonitoRSS RSS bot (formerly known as Discord.RSS) with customizable feeds. https://monitorss.xyz
https://monitorss.xyz
MIT License
1.05k stars 237 forks source link

Add limit size for docker json logs #374

Open BlackYuzia opened 1 month ago

BlackYuzia commented 1 month ago

Due some reasons, I make changes in docker compose for me, anyway, choose to share this setting if you want.

  1. Logs max size should be defined globaly in daemon.json (docker), anyway, I make this one changes.
  2. I make only for this one service, because only this one stole my 80 GB of space storage. image
  3. I make DOCKER_LOGS_MAX_SIZE env, so if anyone want, he could set custom value (like 512m or etc), default is 1000m
  4. I saw, what I break ' and it " now, idk how it happen, feel free to tell me if I should change it back to '
  5. Tested locally, but better to test again, just for sure.