Manual fork of official GitHub repository for docker deployment of Mattermost https://github.com/mattermost/mattermost-docker
This repository has been archived on 2021-08-31. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Yi EungJun 57d1d448b2 db: Specify version of pgsql
You may see this error if you use pgsql 9.5 with 9.4 data.

> FATAL:  database files are incompatible with server
> DETAIL:  The data directory was initialized by PostgreSQL version 9.4, which is not compatible with this version 9.5.0.
2016-01-25 12:31:29 +09:00
app Upgrade mattermost to 1.3.0 2015-12-17 18:06:11 +09:00
db db: Specify version of pgsql 2016-01-25 12:31:29 +09:00
web web: Comment the configuration for redirecting to 443 2016-01-25 01:42:35 +00:00
docker-compose.yml Fix incorrect web port 2016-01-09 03:29:20 +09:00
LICENSE Add README and LICENSE 2015-11-30 17:58:11 +09:00
README.md README: Use 443 port instead of 8065 2016-01-09 14:59:54 +00:00

Dockerfiles for Mattermost in production

Requirement

Howto

Install SSL certificate

You must install SSL certificate before starting. Put your SSL certificate as web/cert/cert.pem and the private key that has no password as web/cert/private/key-no-password.pem.

If you don't have them you can generate a self-signed SSL certificate.

(Re)start

  1. Run docker-compose up -d.
  2. Open https://your.domain with your web browser.

Stop

Run docker-compose stop.

Remove the containers

Run docker-compose stop && docker-compose rm.

Remove the data and settings of your mattermost instance

Remove volumes directory

Known Issues

  • Do not modify the Listen Address in Service Settings.
  • Rarely 'app' container fails to start because of "connection refused" to database. Workaround: Restart the container.
  • Sometimes database connection is misconfigured. Workaround: Delete volumes/app/mattermost/config/config.json and restart the 'app' container.

More informations

If you want to know how to use docker-compose, see the overview page.

For the server configurations, see Production-Ubuntu.md of mattermost.