Skip to content

pontarolli/node-red

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Node-RED Docker Deployment Guide

This guide provides instructions on how to deploy Node-RED using Docker, including how to manage flows and install additional libraries.

Starting Node-RED

To start Node-RED using Docker, navigate to the Node-RED directory and use Docker Compose:

cd node-red
docker compose up 

Managing Flows

Flows are stored outside the container in the default Node-RED directory. To access your flows, navigate to:

/home/pi/.node-red/data/lib/flows

This location will typically be ~/.node-red/data/lib/flows on your filesystem.

Installing Additional Libraries

If you wish to install additional Node.js libraries:

  1. Navigate to the Node-RED data directory:

    cd ~/.node-red/data
  2. Add your dependencies to the package.json file located in this directory.

  3. Run the following command to install the dependencies:

    npm install

Managing Permissions

If you encounter any permission issues, particularly when accessing files or directories, you can modify the permissions recursively using chmod. Note: Use this command with caution as it grants wide permissions.

sudo chmod -R 755 ~/.node-red/data    # Permissão apenas quem criou
sudo chmod -R 777 ~/.node-red         # Permissão todos usuarios

Conclusion

Following these instructions should help you set up and manage your Node-RED instance within a Docker container. For more detailed information on Node-RED and Docker integration, refer to the official Node-RED documentation.

Getting Started

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published