Moving Domoticz from Rpi to Docker

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
maciekk
Posts: 4
Joined: Monday 25 March 2019 9:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.97
Location: Poland
Contact:

Moving Domoticz from Rpi to Docker

Post by maciekk »

Hi,
I use Domoticz installed on my Rpi (Raspbian). Lastly I bought Dell nettop and installed there docker (Ubuntu server 16.04). I started Domoticz installed on docker. I'd like to move my domoticz installation (domoticz, influxdb, grafana, etc) from Rpi to new installation on docker.
I'm newbe in Linux environment - so anybody can help me with some instruction or tutorial how to do it? Is it enough to copy domoticz folder to new place in docker?

Thanks in advance for you help.


Mac
nmaster
Posts: 54
Joined: Saturday 16 August 2014 17:17
Target OS: Linux
Domoticz version: 3.6304
Contact:

Re: Moving Domoticz from Rpi to Docker

Post by nmaster »

Hi.

It depends what docker image you used.
I used docker image from linuxserver.io: https://hub.docker.com/r/linuxserver/domoticz

When you create docker container you must specify a -v parameter for a config path.
In this folder (let's say you specified /home/user/Config/domoticz) where user is a username, here is what you have in the folder.

domocookie.txt
domoticz.db
domoticz.db-shm
domoticz.db-wal
keys
ozwcache_0xc241b4d5.xml
OZW_Log.txt
plugins
scripts
zwcfg_0xc241b4d5.xml
zwscene.xml

In fact you have domoticz database, zwave log and conf if you have zwave on your home automation system, keys folder (for https), plugins and scripts folders where you copy plugins and scripts you actualy use.

Hope this will help.
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Moving Domoticz from Rpi to Docker

Post by DAVIZINHO »

this is very interesting.
but i have a question.
If i have a script sh thant runs in crontab every X minutes. In docker, how can i make it works?

thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest