tulsasoftware / modbus-opc-gateway

A node-red based gateway that binds Modbus device read/writes to an OPC UA server

Repository from Github https://github.comtulsasoftware/modbus-opc-gatewayRepository from Github https://github.comtulsasoftware/modbus-opc-gateway

A Node-Red Slim Container with Alpine

Current size is 374MB with basic Node-Red UI.

Multi-Stage Docker

Base and production ready images on alpine:3.18, Build Stage through: nodered/node-red:3.1.0-18-minimal

Usage

Building Image

docker build -t node-red-slim:latest .

Running Image

docker run -d --name=my-slim-nodered \
    -e NODERED_AUTH_ADMIN_USERNAME=admin \
    -e NODERED_AUTH_ADMIN_PASSWORD='$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.' \
    -p 1880:1880 \
    node-red-slim:latest

here the encrypted password is password as an example

Raspberry Pi

There is a known issue when running on raspberry pi which requires the following when launching the container. The --security-opt seccomp=unconfined be added to your run command or to your compose file:

    #required on raspberry pi - alpine slim >3.13 fails to ping
    security-opt:
      - seccomp=unconfined

Build and Run using docker-compose

docker-compose build nodered-slim && docker-compose up

Mentions

Thank you to Shantanoo Desai shantanoo.desai@gmail.com for providing a fork as the original template.

About

A node-red based gateway that binds Modbus device read/writes to an OPC UA server

License:GNU General Public License v3.0


Languages

Language:JavaScript 90.7%Language:Python 3.6%Language:Dockerfile 3.0%Language:Shell 2.7%