Giter VIP home page Giter VIP logo

domoticz-docker's Introduction

domoticz-docker

Dockerfile for domoticz. Starts a container that can be 'seeded' with an available (backup) database, if one is in the context directory. Opens a volume for the backups directory, so you can easily retreive any database backups.

Requirements

Getting your files

Building

  • cd domoticz-docker
  • sudo docker build -t MyDomoticz .

Running

The basic command is this:

sudo docker run --device=/dev/ttyUSB0 -v /SOMEPATH/domoticz-docker/backups:/root/domoticz/backups -p 8084:8080 -d MyDomoticz

Explantion

  • sudo docker run -d MyDomoticz : the basic run command
  • --device=/dev/ttyUSB0 means we expose a device we need to the container.
  • the old way to do this was to use -priviliged (which is deprecated and will become --priviliged), but this is a better option
  • when using priviliged, use something like: sudo docker run -privileged -v /dev/bus/usb:/dev/bus/usb
  • as you see you might need to play with the device name. ttyUSB0, /dev/bus/usb, /dev/bus/usb/00x/00y .. try using lsusb to find out your device
  • -v /SOMEPATH/domoticz-docker/backups:/root/domoticz/backups mounts the 'backups' directory to the created volume.
  • you have your backups in a save place: keep them with your dockerfile in a backup-device and you're all set to 'reinstall'
  • -p 8084:8080 means that we expose the 8080 port to local 8084
  • domoticz (and our docker install) run on port 8080, but if you have anything running on your machine, this could be an issue
  • if you want to access using 8080, just use -p 8080:8080

Browsing

  • You can now access your install on http://server_ip:8084

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.