49 lines
1.3 KiB
Markdown
49 lines
1.3 KiB
Markdown
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`.
|
|
|
|
### Remove
|
|
|
|
Run `docker-compose stop && docker-compose rm`.
|
|
|
|
## Known Issues
|
|
|
|
* Recreating the 'app' container resets the mattermost settings. If you modified
|
|
settings in System Console or `/mattermost/config/config.json` in the 'app'
|
|
container and want to keep them, you should manually update `app/config.json`.
|
|
|
|
* Do not modify the Listen Address in Service Settings.
|
|
|
|
## 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
|