/domoticz-docker

Domoticz docker container

Primary LanguageMakefileGNU General Public License v3.0GPL-3.0

domoticz-docker

Make a persistent domoticz container

Requirements

docker

Contributing

Feel free to make an issue or pull request here

Usage

make run

should ask you any pertinent questions and bring up a container running domoticz

DockerHub Usage

docker pull avinkdotone/domotics-docker
 @docker run --name=domoticz \
        --privileged \
        --cidfile="cid" \
        -d \
        -p 8080:8080 \
        -v $(DATADIR)/config:/config \
        -t avinkdotone/domoticz-docker

or simply use the init recipe from the Makefile

make init

Persistence

First run an instance like above and grab it's data dirctory:

make grab

or manually

        mkdir -p datadir/domoticz
        docker cp `cat cid`:/config  - |sudo tar -C datadir/ -pxf -

then kill off the original container and run the persistent image

make clean
make run

or manually

 @docker run --name=domoticz \
        --privileged \
        -d \
        -p 8080:8080 \
        -v `pwd`/datadir/config:/config \
        -t avinkdotone/domoticz-docker

Branches

there are branches for raspberryPi as well, checkout the arm branch to pull my image from docker hub, or use the local-stretch to build locally though it should be noted you'll need a locally built stretch image named local-stretch, I have another Makefile repo for that as well. Merely make stretch and a local stretch image can be built using debootstrap (which is available in most distribution [even ones not based on debian])