Page 1 of 1

Wich Docker for Domoticz on Raspberry Pi4

Posted: Tuesday 21 March 2023 14:22
by njlammerts
Because my current Domoticz is gone bad/damaged and now constantly gives error about exceeding over 255 devices, viewtopic.php?t=39993
i decided to start over/new and Docker is one of the possibility's to go.


I found several sites/ways/wiki's were different way of installing Domoticz in Docker on a Raspberry Pi.
I am new when it comes to installing/using Docker and would like to know what is the (best) way to go. A quick search gave me the following results and all use a different kind of Docker "engine". What is the best way of installing/using Domoticz with Docker? And maybe more important, what is the best version when it coms to updating and rolling back to older versions when you run into trouble (like i have for the past month)

https://raspberrytips.com/domoticz-on-raspberry-pi/
https://www.domoticz.com/wiki/Docker
https://github.com/zoilomora/domoticz-raspberry-docker
https://hub.docker.com/r/domoticz/domoticz
https://dev.to/rohansawant/installing-d ... steps-3mgl


How about external devices who are depending on Mosquitto, Zigbee2MQTT, USB devices etc.

Please keep in mind that i am a newbie when is comes to Docker, so please be understanding, helpful and polite :-)

Re: Wich Docker for Domoticz on Raspberry Pi4

Posted: Tuesday 21 March 2023 14:59
by Kedi
Docker does not solve you problem of 255 devices limit.
For you as newbee to docker it might complicate things.
Could not you use "Devices Blacklist" to filter out some unused devices.
Like:

Code: Select all

.*_power_;.*_effect;.*_pwrmem;.*_volt;.*_ampere;.*_thb;.*_lowbtr;.*_indica

Re: Wich Docker for Domoticz on Raspberry Pi4

Posted: Tuesday 21 March 2023 18:39
by njlammerts
there should not be a 255 limit anymore in Domoticz. My setup is so fucked up at the moment that I have over 1500 IDX values and if I do a roll-back or Update...... the same result is occurring....... I don't "go to docker" to solve that problem, because it will not. I want to go to Docker because it seems te be easier to fall back on an earlier release if an update fails or does not have the right results

So i am over that, cried out and will start over.

My question in this post was/is not about solving the 255 limit (Wich is not there anymore since 1-1.5 years) But it is about Docker and what is the (best) way to go. Yes I am a newbie...... but I want to learn and I don't need people to say that it is hard and not for me. Everybody here had to start sometime (even you who is reading this) and you learn by falling and standing up again.......

Re: Wich Docker for Domoticz on Raspberry Pi4

Posted: Tuesday 21 March 2023 19:04
by Sjonnie2017
I went the "Docker way" and I am glad I did. Yes I made mistakes and had to do some installs again but that's part of the fun, isn't it :mrgreen:

Updating Domoticz or other containers is much easier and using plug-ins is a piece of cake; well most of the time. I had some thinking to do on certain plug-ins.

I run Docker on a NUC with Debian (the basis of Raspbian) and use docker compose to create the containers and persistent volumes (which you would need to allow plug-ins to be used easily).

My containers are all created in my home directory so I can access them easily from the command line. All persistent volumes are also created in my home directory (same reason). Easier to backup and easier to migrate to different hardware in case of failure. I then only have to move/restore my homefolder to the new hardware and launch the containers. I have tested that and found it took me less than an hour to migrate.

I am reluctant to share my docker-compose.yaml on a public forum but if you would like I could be of assistance via PM. Although I must admit my Frysian is not very good but my Dutch is rather up to par ;)

Re: Wich Docker for Domoticz on Raspberry Pi4

Posted: Tuesday 21 March 2023 19:17
by njlammerts
HaHa........ maybe you can teach me Docker and I teach you Frisian :-)

Re: Wich Docker for Domoticz on Raspberry Pi4

Posted: Tuesday 21 March 2023 19:46
by Sjonnie2017
:mrgreen: who knows? Anyway...of you're ready for it, give me a hauler and we'll see what we can achieve.

Re: Wich Docker for Domoticz on Raspberry Pi4

Posted: Thursday 23 March 2023 8:58
by Sjonnie2017
Hi njlammerts,

I am having difficulty getting my PM's sent. Could you PM me an email address I could use?

Greetz,

Sjonnie