How to set up a private AI workspace with Mattermost
Learn the workspace, then try your own private setup.
Keep a task, its discussion and the next step in one place. Use a workspace you have access to, or try your own private learning instance.
Before you start
- Choose an existing workspace you are authorized to use, or your own isolated learning machine.
- For self-hosted practice, install a current supported Docker Engine first. Use version 28 or newer for this loopback-publishing path. The official Ubuntu install guide is linked in step 2.
- The preview needs at least 1 GB of available RAM and 1 GB of disk space, in addition to the host and other tools. Use only non-sensitive examples.
Self-hosting uses your machine or VPS resources. The preview container is for evaluation, not a durable business deployment.
Setup steps
Choose your starting point
Where: Your browser
Already invited to the community workspace? Sign in through its existing link and skip to step 5. You do not need Docker, an administrator account or your own server to use channels and threads. To try hosting your own, continue to step 2 on a machine you control.
Check: You know whether you are using an existing workspace or building your own private preview.
Check Docker and available space
Where: Your own Ubuntu learning machine / terminal
Install Docker using the official Ubuntu instructions if it is missing, then return here. The commands check the running engine, existing containers, listening ports and capacity; they do not remove or replace anything. Use a current supported Docker version, at least 28. Stop if the chosen name or port is already used.
sudo docker version sudo docker ps -a --filter name=campus-mattermost-preview ss -ltn free -h df -hCheck: The Docker daemon responds, campus-mattermost-preview and port 8065 are free, and you have the available resources listed before this guide.
Start a private preview
Where: Your own learning machine / terminal
Start the official evaluation container with its host port bound to loopback. Keep the cloud firewall limited to SSH; do not open 8065 to the Internet. Check the running container before continuing.
sudo docker run --name campus-mattermost-preview -d -p 127.0.0.1:8065:8065 mattermost/mattermost-preview sudo docker ps --filter name=campus-mattermost-previewCheck: The container is running and its host port is shown as 127.0.0.1:8065, not a wildcard address.
Open it from your own computer
Where: Your computer / new terminal, then browser
If Docker is on your computer, open http://127.0.0.1:8065 directly. If it is on the VPS, replace the IP below and keep this SSH tunnel open. Then open http://127.0.0.1:18065 in your computer’s browser. The local port is not a public workspace address. Stop the tunnel later with Ctrl+C.
ssh -i ~/.ssh/campus_do -o ExitOnForwardFailure=yes -N -L 127.0.0.1:18065:127.0.0.1:8065 campus@YOUR_DROPLET_IPCheck: The Mattermost setup screen loads through the matching local address. The VPS does not need a public 8065 firewall rule.
Use a channel and a thread
Where: Mattermost / your browser
On your own new preview, create the first administrator account and a team, then create a private channel. In an existing workspace, use a channel you are already allowed to access instead—do not request admin rights for this exercise. Write a non-sensitive sample task and reply in its thread. A public channel is visible to permitted team members; it is not automatically an anonymous public web page.
Check: Your sample task and reply stay together in a thread, and you can explain who is allowed to see the channel.
Connect your Hermes agent — optional
Where: Your own Mattermost admin UI, then the Hermes terminal
You can finish after step 5. For your own test instance, follow the official bridge guide: create a bot with the Member role, add it to the intended private channel, and use the wizard below. Supply the server URL reachable from the machine running Hermes, the bot token and your exact human user ID. Find your own ID at /api/v4/users/me in your signed-in browser; a bot-token lookup returns the bot’s ID instead. Keep mentions required and authorize only your own user ID, not a wildcard. The foreground gateway needs its terminal to remain open.
hermes gateway setup hermes gateway runCheck: If you chose the bridge, an authorized mention gets a reply in your intended test channel. Otherwise the channel/thread exercise completes this guide without a bot.
Troubleshooting
- I joined an existing workspace; do I need to install anything?
- No. Skip hosting steps 2–4 and use step 5 with your existing permissions.
- The VPS preview does not load
- Check the container and keep the SSH tunnel open. Use the local tunnel URL, not the Droplet IP. Do not open a public port as a shortcut.
- What happens to my data?
- Do not rely on this preview for durable storage or backups. Before a real rollout, plan TLS, access control, persistent database/files, backups, updates and capacity using Mattermost’s deployment guide.
Completion checklist
- You can access an authorized workspace or your private preview.
- You used a channel and a thread with a non-sensitive example.
- You understand this preview is not production. A Hermes bridge is optional and needs owner authorization.
Official references
- Mattermost Docker preview
- Teams
- Channel types
- Docker Ubuntu installation
- Hermes Mattermost bridge
- Docker port publishing and version warning
- Plan a durable Mattermost deployment