Sign inSign up

nidayand/node-red-pm2

By nidayand

•Updated over 6 years ago

Node-RED v0.19.5 with Node.js v10.15.1 and pm2

Image
1

446

nidayand/node-red-pm2 repository overview

Based on official node-red-docker image but modified slightly to run Node-RED with pm2 to enable restart of Node-RED within the container.

⁠Version

nodered    | ===================
nodered    | 18 Jun 09:07:16 - [info] Node-RED version: v0.20.5
nodered    | 18 Jun 09:07:16 - [info] Node.js  version: v10.16.0

⁠Simple example

# Create container
docker run -d -p 1880:1880 -v /{path to local folder}:/data --name nodered nidayand/node-red-pm2:latest

# You can go to http://localhost:1880 to open the Node-RED UI

# Enter the container
docker exec -it nodered bash

# Go to the data dir
cd /data

# Install 3rd party nodes. E.g.
npm install node-red-contrib-norelite

# Restart Node-RED
pm2 restart node-red

⁠SImple docker-compose.yml file

version: '3.0'
services:
  nodered:
    container_name: "nodered"
    image: nidayand/node-red-pm2
    volumes:
      - "./data:/data"
    ports:
      - "1880:1880"

⁠(Access as root)

docker exec --user 0 -it nodered  /bin/bash

Tag summary

Content type

Image

Digest

Size

373.4 MB

Last updated

over 6 years ago

docker pull nidayand/node-red-pm2