2015-11-30 07:09:07 +01:00
|
|
|
Dockerfiles for Mattermost in production
|
|
|
|
|
|
|
|
## Requirement
|
|
|
|
|
|
|
|
* [docker]
|
|
|
|
* [docker-compose]
|
|
|
|
|
|
|
|
## 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`.
|
|
|
|
|
2015-12-04 10:19:06 +01:00
|
|
|
### Remove the containers
|
2015-11-30 07:09:07 +01:00
|
|
|
|
|
|
|
Run `docker-compose stop && docker-compose rm`.
|
|
|
|
|
2015-12-04 10:19:06 +01:00
|
|
|
### Remove the data and settings of your mattermost instance
|
|
|
|
|
|
|
|
Remove `volumes` directory
|
|
|
|
|
2015-12-03 16:40:11 +01:00
|
|
|
## Known Issues
|
|
|
|
|
|
|
|
* Do not modify the Listen Address in Service Settings.
|
2015-12-04 10:20:00 +01:00
|
|
|
* Sometimes 'app' container fails to start because of "connection refused" to
|
|
|
|
database. Workaround: Restart the container.
|
2015-12-09 08:58:55 +01:00
|
|
|
* Sometimes database connection is misconfigured. Workaround: Delete
|
|
|
|
`volumes/app/mattermost/config/config.json` and restart the 'app' container.
|
2015-12-03 16:40:11 +01:00
|
|
|
|
2015-11-30 07:09:07 +01:00
|
|
|
## More informations
|
|
|
|
|
|
|
|
If you want to know how to use docker-compose, see [the overview
|
|
|
|
page](https://docs.docker.com/compose).
|
|
|
|
|
|
|
|
For the server configurations, see [Production-Ubuntu.md] of mattermost.
|
|
|
|
|
|
|
|
[docker]: http://docs.docker.com/engine/installation/
|
|
|
|
[docker-compose]: https://docs.docker.com/compose/install/
|
|
|
|
[Production-Ubuntu.md]: https://github.com/mattermost/platform/blob/master/doc/install/Production-Ubuntu.md
|