alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.49k stars 213 forks source link

❓ Is it possible to convert a docker-compose setup to an add-on? #1534

Open igorsantos07 opened 1 month ago

igorsantos07 commented 1 month ago

Which addon?

A new one, possibly based on https://github.com/MDeLuise/plant-it

name: Question about: Suggest an idea for this project title: Is it possible to convert a docker-compose setup to an add-on? labels: question assignees: ''


Which addon?

A new one, possibly based on https://github.com/MDeLuise/plant-it

Addon or app?

Add-on!

Describe the solution you'd like

I want to contribute Plant-it as a new add-on for the repo, as I am eager to move out from "please pay many bucks a month to be reminded biweekly to feed your plants" apps from Play Store.

However, I never ever contributed to HA before, and the only experience I have with add-ons is installing Grocy and ChangeDetection.io - but I do have some Docker experience. That said, Plant-it suggestion of setup is based on a compose file, running an application, database and cache servers. I've made a suggestion to the maintainer to slim it down a bit (https://github.com/MDeLuise/plant-it/issues/279), but I'm not sure if it's feasible. And docs about "how to create a new add-on" only point to Dockerfiles; is it possible to create an add-on with a compose file instead?

Additional context A side-concern I have as well is that the original Plant-it server seems quite resource intensive, given it runs the Java VM in an Ubuntu server with a full MySQL as a side dish. No clue how feasible it would be to slim that down to run on my RPi 3b :clown_face:

Describe alternatives you've considered I guess I will regret this, but I'm considering forking the project's server and recreating it with tech I know, in a slimmer build. It would be fun to keep it in track with the original project, considering I barely have free time to fix stuff that breaks in my smart home setup :joy: But right now, it feels like the only way forward.