kellerza / sunsynk

Deye/Sunsynk Inverter Python library and Home Assistant OS Addon
https://kellerza.github.io/sunsynk/
MIT License
229 stars 95 forks source link

Add docker-compose to run as standalone container #150

Closed jpmeijers closed 1 year ago

jpmeijers commented 1 year ago

Fixes #31

jpmeijers commented 1 year ago

Thanks! What do you use this for if I may ask, do you deploy it locally without HASS OS?

Indeed. I find it really annoying how HASS OS / HA Supervisor hijacks your entire machine. I've been through many different setups where the host machine is shared between Home Assistant and other services, and each time either HA is unhappy, or it kills my other containers. Yesterday after a reboot HA didn't want to start up, so I gave up and decided to go clean HA Core in a container, and run all the add-ons manually in containers next to it.

I prefer running everything in docker containers on my server, allowing me to update the host without affecting any of the running services. So very similar reason as pinning library versions. Having to run a VM for HA is a lot of unnecessary overhead.

Regarding this PR: I'll test the yaml config file approach, apply your requested changes and push a new commit.

kellerza commented 1 year ago

Thank you @jpmeijers 🚀

Mountaingoat66 commented 1 year ago

Can I ask a question here?

kellerza commented 1 year ago

Can I ask a question here?

You can, but always better to ask in a new/active discussion, or new/open issue (like #183)