Mattermost on Railway
Self-hosted team chat with channels and threads: Mattermost Team Edition with Postgres on Railway.
Mattermost is an open-source team messaging platform with channels, threads, direct messages, file sharing and integrations. It is commonly used as a self-hosted alternative to Slack by teams that want to control their data.
It suits engineering, operations and support teams, ChatOps setups with GitHub, GitLab or Jira, and organisations with data residency or compliance requirements.
The template runs Team Edition. The source is AGPL-3.0, the compiled Team Edition is MIT licensed, and Team Edition has user limits (a warning at 200 and a hard limit at 250 users).
What Mattermost can do
- Channels, threads and direct messages
- File sharing and search
- Webhooks, bots and plugins
- Mobile and desktop apps
- System Console for administration
- Integrations with GitHub, GitLab and Jira
What people use it for
- Internal chat for teams that want to own their data
- Self-hosted Slack alternative
- ChatOps with webhooks and integrations
- Private spaces for agencies, schools and clubs
Videos
Running Mattermost on Railway
The Railway template deploys Mattermost Team Edition v11 with Postgres, which also stores the configuration, and a Railway Bucket for attachments, avatars, emoji and plugins. Because Railway Buckets accept only virtual-hosted S3 requests, a small rclone S3 gateway on the private network sits between Mattermost and the bucket. The server has no volume, so redeploys keep your data. Cost follows the CPU and memory of the Mattermost, gateway and Postgres services plus bucket storage.
Mattermost templates on Railway
Tracklayer templates are listed first. Other Mattermost templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about Mattermost
Who becomes admin?
The first account created becomes System Admin. Open sign-up is off by default, so create a team and share its invite link.
Do voice and video calls work?
Not the bundled Calls plugin: Railway has no UDP, so it cannot connect. Disable it in System Console or use the Zoom or Microsoft Teams plugin.
Is there a user limit?
Team Edition shows a warning at 200 users and has a hard limit at 250. Larger deployments need a different edition and licence.
Where are files and settings stored?
Files go to the Railway Bucket through the S3 gateway. Settings changed in System Console are stored in Postgres, so they survive redeploys.
Can I use a custom domain?
Yes. Update MM_SERVICESETTINGS_SITEURL after you add it.
Similar apps
Tracklayer maintains the templates marked as such; Mattermost is a trademark of its owners and this site is not affiliated with them.