Availability: RAM limit for add-ons

Hi,

Simple feature, add a memory limit to Homeassistant docker addons:

Some containers can have big memory usage (hi vscode) , it happens that by reaching the maximum memory the system is not responding anymore, and i have to restart manually or somehow get to ssh (take ages) and kill the process / container.

As all my house relies on Homeassistant’s availablilty it is a very annoying problem, especially since i also have another container that can cause this issue to happen (hi frigate) for a reason i haven’t identified yet.

A simple feature would be to add a config parameter in addon’s config.yaml like:

resources:
  memory: 4GB

Or add another way to allow like in a more common place like in the hass config.yaml so every user can also set the max size by addon (there are probably better solutions)

For now i have to run this command, every time hass is restarted:

docker update --memory 4G --memory-swap 4G addon_target

Thanks !

And amazing Job BTW