Hi, I’m new to Docker and am struggling with an issue that I’m supposing is easy to fix - I hope so!
RPi 4 with 4GB ram
Ubuntu 20:04 server
Docker version 19.03.11, build 42e35e6
The problem I have is when I add a redis input node to the palette I’m not too sure what to use as the host; I’ve tried redis, ioredis, localhost, 127.0.0.1 and the IP of my machine and they all return the same error in the node-red log.
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
Any ideas what the problem can be? I’m sure its obvious but I’ve searched everywhere without success to find the solution.
This is my (very simple) flow: -
[{"id":"453536fa.587998","type":"redis-out","z":"94d077d5.7a1748","server":"199115fd.fe49da","command":"publish","name":"","topic":"message/play","x":520,"y":80,"wires":[]},{"id":"5a1ff379.3b738c","type":"redis-instance","z":"94d077d5.7a1748","server":"d44a8dae.3fea6","name":"","topic":"redis","location":"flow","block":false,"x":490,"y":40,"wires":[]},{"id":"199115fd.fe49da","type":"redis-config","z":"","name":"redis","options":"{}","cluster":false,"optionsType":"json"},{"id":"d44a8dae.3fea6","type":"redis-config","z":"","name":"redis","options":"{}","cluster":false,"optionsType":"json"}]
Any help gratefully received.
Dockerfile for djtbrit/node-red is: -
1 FROM nodered/node-red
2 RUN echo 'Installing required nodes...'
3 WORKDIR /usr/src/node-red
4 RUN npm install node-red-contrib-redis
5 RUN npm install node-red-contrib-influxdb
An finally my docker-compose.yaml file is: -