Code Monkey home page Code Monkey logo

alarmdecoder-webapp-dockerfile's Introduction

AlarmDecoder Webapp Dockerfile

This is a Dockerfile for the AlarmDecoder Webapp project. It is built by following the build instructions in that project's README, with a few tweaks to adapt to the Docker environment.

Run Container

The container is available pre-built on Docker Hub.

docker run --rm -p 5000:5000 --device=<device_id> codekitchen/alarmdecoder-webapp

The container will need access to the AlarmDecoder hardware, replace <device_id> with the correct USB device, e.g. --device=/dev/ttyUSB0.

You can then access AlarmDecoder at http://<host_ip>:5000.

Complete Setup

This container exposes the gunicorn workers directly, it's recommended that set up an nginx reverse proxy in front of the app.

You'll also likely want to created a named or mounted volume to persist the configuration and logging, which lives at /opt/alarmdecoder-webapp/instance.

A complete docker-compose configuration might look something like:

proxy:
  image: jwilder/nginx-proxy
  ports:
    - 80:80
    - 443:443
  volumes:
    - /var/run/docker.sock:/tmp/docker.sock:ro
    - my-certs:/etc/nginx/certs

alarmdecoder:
  image: codekitchen/alarmdecoder-webapp
  environment:
    VIRTUAL_HOST: alarm.example.com
  devices:
    - /dev/ttyUSB0
  volumes:
    - alarmdecoder:/opt/alarmdecoder-webapp/instance

alarmdecoder-webapp-dockerfile's People

Contributors

codekitchen 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.