- docs
- FlowFuse User Manuals
- Using FlowFuse
- Getting Started
- Static asset service
- Bill of Materials
- FlowFuse Concepts
- Changing the Stack
- Custom Hostnames
- Device Groups
- DevOps Pipelines
- Environment Variables
- FlowFuse Assistant
- FlowFuse File Nodes
- FlowFuse Persistent Context
- FlowFuse Project Nodes
- High Availability mode
- HTTP Access Tokens
- Instance Settings
- Logging
- Shared Team Library
- Snapshots
- Team Broker
- Teams
- User Settings
- FlowFuse API
- Migrating a Node-RED project to FlowFuse
- Device Agent
- Device Agent
- FlowFuse Device Agent Introduction
- Quick Start
- Installation
- Quick Start with Web UI
- Register your Device
- Running the Agent
- Deploying your Flows
- Hardware Guides
- FlowFuse Cloud
- FlowFuse Cloud
- FlowFuse Self-Hosted
- Quick Start
- Installing FlowFuse
- Overview
- Configuring FlowFuse
- DNS Setup
- Docker install
- Docker from AWS Market Place
- Docker on Digital Ocean
- Add Project Stacks on Docker
- Docker Engine on Windows
- Email configuration
- First Run Setup
- FlowFuse File Storage
- Install FlowFuse on Kubernetes
- Upgrading FlowFuse
- Administering FlowFuse
- Administering FlowFuse
- Configuring Single Sign-On (SSO)
- Licensing
- Monitoring
- Telemetry
- User Management
- Support
- Community Support
- Premium Support
- Debugging Node-RED issues
- Contributing
- Contributing to FlowFuse
- Introduction
- Adding Template Settings
- API Design
- Creating debug stack containers
- Database migrations
- FlowFuse Architecture
- Local Install
- State Flows
- Device Editor
- Invite External Users
- User Login Flows
- Reset Password Flow
- Project Creation
- Instance states
- User Sign up Flow
- Team creation Flow
- Team Broker
- Working with Feature Flags
# Docker Stacks
A Stack defines a set of platform configuration options that will get applied to each Node-RED instance when created.
For container based deployment models, this covers three things:
memory
- the amount of memory (in MB) to limit container to. Recommended minimum:256
.cpu
- a value between 1 and 100 that is the % of a CPU core the container should be allowed to consume.container
- this is the fully qualified name of the container to use. The default container built when following the install instructions is namedflowfuse/node-red:latest
FlowFuse supports Node-RED 2.2.x and later.
# Creating Containers
There is an example Dockerfile
and package.json
in the node-red-container
directory of the docker-compose project. This will start with nodered/node-red:latest
as it's base and then add the required FlowFuse components.
Builds of this container for amd64, arm64 and armv7 are built for every release and published to Docker hub as flowfuse/node-red. These can be used as a base to build custom stacks.
If you wanted to pin at Node-RED v3.0.2 you would change the first line to:
FROM nodered/node-red:3.0.2
ARG REGISTRY
RUN if [[ ! -z "$REGISTRY" ]] ; then npm config set @flowfuse:registry "$REGISTRY"; fi
COPY package.json /data
...
To add nodes to the default image you can extend the supplied container. The following Dockerfile will install the node-red-dashboard
FROM flowfuse/node-red
WORKDIR /usr/src/node-red
RUN npm install node-red-dashboard
WORKDIR /usr/src/flowforge-nr-launcher
To build the container run the following:
docker build node-red-container/Dockerfile-dashboard -t flowfuse/node-red-dashboard:3.0.2
You would then enter flowfuse/node-red-dashboard:3.0.2
in the container
section of the Stack configuration.
Stacks can be changed on a per instance basis, see also the user stack documentation.