We use the mongo docker image in our CI tests through GitHub actions. Not sure how helpful this is for you.
Migrating NodeBB from server A to B
How do I migrate a old NodeBB forum to a new server?
If you're using mongo, you can mongodump / mongorestore. There's a similar process for redis.
Then copy over your config.json