Skip to content

Latest commit

 

History

History
 
 

mattermost

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

## Mattermost Platform example

This example shows how to deploy Mattermost using Apollo and Marathon Mesos framework.

The example includes -

  • Mattermost an open source, on-prem Slack-alternative

We'll use the mattermost Docker image.

The examples are to be deployed on top of the Marathon Mesos framework.

### Start the Mattermost Platform

Start the services by running the following command (from somewhere you can access the REST interface of Marathon). Replace $MARATHON_IP with the actual hostname/ip address of the marathon instance. Marathon by default should be deployed in the mesos_master nodes.

curl -X POST -HContent-Type:application/json -d @chatops.json http://$MARATHON_IP:8080/v2/apps

The service will be accessible through the HAProxy container (on port 80) at chatops.example.com by default. It is recommended that you set up your own DNS servers / hostname and override the haproxy_domain in ../roles/haproxy/defaults/main.yml.

For cloud instances

To access the Mattermost application, go to the Marathon dashboard at http://$MARATHON_IP:8080/#apps and click on /chatops. You should see an IP address and Port in the service definition, if you click on it you should be redirected to the mattermost application.

For Vagrant only

If you are deploying this example in the Vagrant environment, simply add the following entry to your host machine in /etc/hosts

172.31.1.14 chatops.example.com

Where 172.31.1.14 is the Agent IP address configured in vagrant.yml If you access chatops.example.com through your browser that will hit the Haproxy container running on the agent machine which will forward the traffic to the mattermost container.

Removing the apps

You can remove the applications straight from the command line by running -

curl -XDELETE http://$MARATHON_IP:8080/v2/apps/chatops