A dead simple Node-RED deployment for your friendly local Dokku PaaS.
-
Install Dokku on the intended host
wget https://raw.githubusercontent.com/dokku/dokku/v0.27.7/bootstrap.sh; sudo DOKKU_TAG=v0.27.7 bash bootstrap.sh
-
Install the dokku-letsencrypt plugin
sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git dokku letsencrypt:cron-job --add
-
Create the app and attach a data directory
dokku apps:create node-red dokku storage:ensure-directory node-red-data --chown heroku dokku storage:mount node-red /var/lib/dokku/data/storage/node-red-data:/data
-
Configure port mapping, set a domain, and enable SSL.
dokku proxy:ports-add node-red http:80:1880 dokku domains:set node-red nodered.your.domain.tld
-
Deploy repository to Dokku
git remote add production [email protected]:node-red git push production main
-
Configure Node-RED (e.g. set an admin password)
nano /var/lib/dokku/data/storage/node-red-data/settings.js