Docker container for Domoticz
"Domoticz is a very light weight home automation system that lets you monitor and configure various devices like: lights, switches, various sensors/meters like temperature, rainfall, wind, Ultraviolet (UV) radiation, electricity usage/production, gas consumption, water consumption and much more. Notifications/alerts can be sent to any mobile device. The best of all, is that Domoticz is open source and completely free! You only need to invest in hardware."
To install docker in Ubuntu 15.04 use the commands:
$ sudo apt-get update
$ wget -qO- https://get.docker.com/ | sh
To install docker in other operating systems check docker online documentation
To run container use the command below:
$ docker run -d -p 8080 –device /dev/ttyUSB1 -v scripts:/scripts zaraki673/docker-domoticz
or
$ docker run -d -p xxxxx:8080 –device /dev/ttyUSB1 zaraki673/docker-domoticz
Where xxxxx is the port assigned by you for the container if not docker will assigned one for it.
Special :for Wiaomi Gateway and other plugins who use multicast use --network=host instead of -p xxxxx:8080
ex : docker run --restart=always -d --name=Domoticz --network=host -v /mnt/3TO/DockerData/Domoticz/scripts:/scripts -v /mnt/3TO/DockerData/Domoticz/plugins:/opt/domoticz/plugins -v /mnt/3TO/DockerData/Domoticz/floorplans:/opt/domoticz/www/images/floorplans -v /etc/localtime:/etc/localtime:ro -v /mnt/3TO/DockerData/Domoticz/domoticz.db:/opt/domoticz/domoticz.db zaraki673/docker-domoticz
After that check with your browser at addresses plus the port assigined by docker or you:
To access the container from the server that the container is running :
$ docker exec -it container_id /bin/bash
$ export TERM=xterm #needed to execute some command correctly (nano,top)
About Domoticz: www.domoticz.com
To help improve this container [docker-domoticz][5]
Content type
Image
Digest
Size
1.1 GB
Last updated
over 5 years ago
docker pull zaraki673/docker-domoticz