2015-11-30 07:09:07 +01:00
|
|
|
Dockerfiles for Mattermost in production
|
|
|
|
|
|
|
|
## Requirement
|
|
|
|
|
|
|
|
* [docker]
|
|
|
|
* [docker-compose]
|
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
## Installation
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
### Install with SSL certificate
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
1. Create a symbolic link `docker-compose.yml` to `docker-compose-ssl.yml`:
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
ln -s docker-compose-ssl.yml docker-compose.yml
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
2. 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 may generate a self-signed SSL certificate.
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
3. Build and run mattermost
|
|
|
|
|
|
|
|
docker-compose up -d
|
|
|
|
|
|
|
|
4. Open `https://your.domain` with your web browser.
|
|
|
|
|
|
|
|
### Install without SSL certificate
|
|
|
|
|
|
|
|
1. Create a symbolic link `docker-compose.yml` to `docker-compose-nossl.yml`:
|
|
|
|
|
|
|
|
ln -s docker-compose-nossl.yml docker-compose.yml
|
|
|
|
|
|
|
|
2. Build and run mattermost
|
|
|
|
|
|
|
|
docker-compose up -d
|
|
|
|
|
|
|
|
3. Open `http://your.domain` with your web browser.
|
|
|
|
|
|
|
|
## Starting/Stopping
|
|
|
|
|
|
|
|
### Start
|
|
|
|
|
|
|
|
docker-compose start
|
2015-11-30 07:09:07 +01:00
|
|
|
|
|
|
|
### Stop
|
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
docker-compose stop
|
|
|
|
|
|
|
|
## Removing
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2015-12-04 10:19:06 +01:00
|
|
|
### Remove the containers
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
docker-compose stop && docker-compose rm
|
2015-11-30 07:09:07 +01:00
|
|
|
|
2015-12-04 10:19:06 +01:00
|
|
|
### Remove the data and settings of your mattermost instance
|
|
|
|
|
2016-04-07 10:34:10 +02:00
|
|
|
sudo rm -rf volumes
|
2015-12-04 10:19:06 +01:00
|
|
|
|
2015-12-03 16:40:11 +01:00
|
|
|
## Known Issues
|
|
|
|
|
|
|
|
* Do not modify the Listen Address in Service Settings.
|
2015-12-09 09:17:25 +01:00
|
|
|
* Rarely 'app' container fails to start because of "connection refused" to
|
2015-12-04 10:20:00 +01:00
|
|
|
database. Workaround: Restart the 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).
|
|
|
|
|
2016-04-17 11:37:57 +02:00
|
|
|
For the server configurations, see [prod-ubuntu.rst] of mattermost.
|
2015-11-30 07:09:07 +01:00
|
|
|
|
|
|
|
[docker]: http://docs.docker.com/engine/installation/
|
|
|
|
[docker-compose]: https://docs.docker.com/compose/install/
|
2016-04-17 11:37:57 +02:00
|
|
|
[prod-ubuntu.rst]: https://github.com/mattermost/docs/blob/master/source/install/prod-ubuntu.rst
|