If you are using Docker Compose v1 with node-RED and wish to transition to Docker Compose v2, you might want to have a look at the compatibililty matrix

This is especially useful if you use bcrypt passwords as Docker compose v1 and v2 handle them very different.

Hope this helps the community.