How to get Mattermost running on a different server (to prepare UCS upgrade to 5.x)

Some more information from another post to the same topic. Maybe it help someone: