Mattermost migration from mattermost-docker to a Linux-based operating systems

This can’t work. As far as i can see the postgres container isn’t being used, you’re using mysql an specified the postgres driver. You need to change one of this settings. Somewhere (env file e.g.) might be another configuration which leads to localhost:5432.