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

Self-hosting uses your machine or VPS resources. The preview container is for evaluation, not a durable business deployment.

Setup steps

  1. 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.

    Official documentation for this step

  2. 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 -h

    Check: The Docker daemon responds, campus-mattermost-preview and port 8065 are free, and you have the available resources listed before this guide.

    Official documentation for this step

  3. 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-preview

    Check: The container is running and its host port is shown as 127.0.0.1:8065, not a wildcard address.

    Official documentation for this step

  4. 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_IP

    Check: The Mattermost setup screen loads through the matching local address. The VPS does not need a public 8065 firewall rule.

    Official documentation for this step

  5. 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.

    Official documentation for this step

  6. 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 run

    Check: 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.

    Official documentation for this step

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

Official references

Continue learning

Open this chapter in the interactive Setup Book

Need help applying this to your business? Talk with Jonathan at Plinko Solutions or explore Open Campus coaching options.