Hi Ahmaddanial,
I deploy two mattermost-server on same ubuntu machine using the developer setup steps for Team Edition of mattermost.
I have created separate databases in the mysql docker image.
Also have separate port for the respective server.
Using the local file system for the storage in the ./data directory.