Coder Social home page Coder Social logo

docker's Introduction

Domoticz

Docker image for domoticz on raspberry pi with broadlink plugin.

Requirements

Building

  • git clone https://github.com/FBruynbroeck/docker-domoticz.git
  • cd docker-domoticz
  • make build

Pulling

  • docker pull fbruynbroeck/rpi-domoticz

Running

docker run --device=/dev/ttyUSB0 -v /etc/localtime:/etc/localtime:ro -v ./domoticz.db:/root/domoticz/domoticz.db:rw -v ./broadlink:/root/domoticz/broadlink:rw -p 8080:8080 --name=<container name> --restart=always -d fbruynbroeck/rpi-domoticz

Explanations

  • docker run -d fbruynbroeck/rpi-domoticz : the basic run command
  • --device=/dev/ttyUSB0 means we expose a device we need to the container (e.g: RFXcom)
  • -v /etc/localtime:/etc/localtime:ro : use time of the host
  • -v ./domoticz.db:/root/domoticz/domoticz.db:rw mounts the 'backups' file to the created volume.
  • -v ./broadlink:/root/domoticz/broadlink:rw mounts the folder to store ini files (https://www.domoticz.com/wiki/Plugins/BroadlinkRM2.html#Configuration).
  • -p 8080:8080 means that we expose the 8080 port to local 8080
    • domoticz (and our docker install) run on port 8080, but if you have anything running on your machine, this could be an issue

Docker-compose

domoticz:
  image: fbruynbroeck/rpi-domoticz:latest
  restart: always
  devices:
    - '/dev/ttyUSB0'
  volumes:
    - '/etc/localtime:/etc/localtime:ro'
    - './domoticz.db:/root/domoticz/domoticz.db:rw'
    - './broadlink:/root/domoticz/broadlink:rw'
  ports:
    - 8080:8080

Browsing

  • You can now access your domoticz server on http://RASPERRY_IP:8080

Extras

docker's People

Contributors

fbruynbroeck avatar pkoson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.