Giter Club home page Giter Club logo

rflinkgatewaydocker's Introduction

RFLinkGatewayDocker

Dockerized version of RFLinkGateway by dmartinpro/RFLinkGateway

Purpose

Firstly to be able to run the RFLinkGateway as a docker instance, but also to make it easier to scale up, it you have several RFLink Gateways

Build

Dockerfile
requirements.txt

Is for the actual build of the docker image. But it is awailable for download here from DockerHub.

Example of a docker build command

docker build -t "magpern/rflinkgateway" .

More

the file

config.json

is not really used. It is an example of a config file from dmartinpro/RFLinkGateway, slightly modified for this docker image. The config file wants a docker container with the name mqtt that hosts the mqtt broker and the username and password for the mqtt broker is myuser:secretpassword Of course, you need to change this config for your own usage.

Run

Let's assume you've cloned repo to /home/pi/. Now you need to run your container with config and log mapped to your host filesystem and the USB port as well.

docker run -d --name=rflinkgateway -v /home/pi/RFLinkGatewayDocker:/config -v /home/pi//RFLinkGatewayDocker:/log -v /dev/ttyACM0:/dev/ttyACM0 --privileged magpern/rflinkgateway

Docker-compose

docker-compose.yml

The docker-compose file is an example of how a multi docker setup could look. The docker-compose file sets up a mosquitto container and a RFLinkGateway container and links them together. For set up of the Mosquitto Broker, please see the Mosquitto Docker information here https://hub.docker.com/_/eclipse-mosquitto

Build the docker containers with

docker-compose up -d

If you already have a MQTT Broker. Modify the config.json for RFLinkGateway to point to your MQTT Broker.

References

rflinkgatewaydocker's People

Contributors

magpern avatar nerodoxus 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.