Hi,
This is why your Node-RED updated to the latest version using the script that you installed with this link DockerIOT/nodered/docker-compose.yml at main · fragolinux/DockerIOT · GitHub
This will update you to the latest version ... image: nodered/node-red
Mine has .. image: nodered/node-red:3.1.3
So that solves your mystery why your Node-RED changed