So for all of you that are having issues with the Homebridge docker quitting after X amount of time (most likely due to the harmonyhub plugin). Try this:
Edit the docker
Turn on Advanced
In parameters add:
--restart=unless-stopped
This should restart the docker if it crashes unexpectedly.