Skip to content

Tloxipeuhca/rpi-domoticz-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-domoticz-docker

Raspberry Pi Docker image containing Domoticz, GPIO, Python3, Zigate plugin and deCONZ plugin.

Download and build the docker image

sudo apt-get install -y git
mkdir ~/downloads && cd "$_"
git clone https://github.com/Tloxipeuhca/rpi-domoticz-docker.git && cd $(basename $_ .git) && make build --no-cache

Host config

# Create emtpy files
mkdir ~/docker-data
mkdir ~/docker-data/domoticz
touch ~/docker-data/domoticz/domoticz.db
touch ~/docker-data/domoticz/domoticz.log
cp gpio.sh run.sh ~/docker-data/domoticz/.

# Create a self-signed PEM file
cd ~/docker-data/domoticz
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
cat ~/docker-data/domoticz/key.pem > ~/docker-data/domoticz/domoticz.pem
cat ~/docker-data/domoticz/cert.pem >> ~/docker-data/domoticz/domoticz.pem
rm ~/docker-data/domoticz/key.pem && rm ~/docker-data/domoticz/cert.pem

How to use this image

# start standard instance
sh  ~/docker-data/domoticz/run.sh

# start gpio instance (docker privileged)
sh  ~/docker-data/domoticz/run.sh gpio

# start gpio instance and usb (docker privileged)
sh  ~/docker-data/domoticz/run.sh gpio usb

# start gpio instance and usb and zigate(docker privileged)
sh  ~/docker-data/domoticz/run.sh gpio usb zigate

# start gpio instance and usb and deCONZ(docker privileged)
sh  ~/docker-data/domoticz/run.sh gpio usb deconz

Browse to portal

url: http://rpi-ip_address:8094 
url: https://rpi-ip_address:8095

Links