One note to add is that the standard version of Mattermost is Apache-AGPL similar to MongoDB. So any organization comfortable with MongoDB should be fine with Mattermost.
MongoDB and Mattermost have Apache for drivers, configuration and administration so you can use and deploy the binaries without restriction. If modifications are made to the core product, those are required to be shared with the open source community.