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
Frank Maker 586b885473 Add trailing backslash to fix "not a directory" error
Running this Dockerfile on Fedora 22 throws a "not a directory" error when it reaches "ADD cert/cert.pem /cert". Adding a backslash to the path resolves the issue.
2016-01-05 11:34:08 -08:00
app Upgrade mattermost to 1.3.0 2015-12-17 18:06:11 +09:00
db Docker for mattermost in production 2015-11-30 17:54:49 +09:00
web Add trailing backslash to fix "not a directory" error 2016-01-05 11:34:08 -08:00
docker-compose.yml Mount the data at ./volumes/app/mattermost/data 2015-12-16 16:26:27 +09:00
LICENSE Add README and LICENSE 2015-11-30 17:58:11 +09:00
README.md Wait until database is ready 2015-12-09 18:57:58 +09: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:8065 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.