Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
The mattermost documentation gives this one-liner which does work properly.
docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview
After running this command a mattermost server is listening on port 8065. Attempting to translate to port 80 on the host however failed and the service was not accessible. Instead to get the preview build up on port 80 I simply installed nginx (either locally or via a second docker container that maps port 80 to port 80 on the host and the following configuration file at /etc/nginx/sites-enabled/default
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_pass http://localhost:8065;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
For a production installation of mattermost using docker, the project recommends following these instructions rather than using the one-liner.