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.
mattermost/README.md

74 lines
1.7 KiB
Markdown
Raw Normal View History

2015-11-30 07:09:07 +01:00
Dockerfiles for Mattermost in production
## Requirement
* [docker]
* [docker-compose]
## Installation
2015-11-30 07:09:07 +01:00
### Install with SSL certificate
2015-11-30 07:09:07 +01:00
1. Create a symbolic link `docker-compose.yml` to `docker-compose-ssl.yml`:
2015-11-30 07:09:07 +01:00
ln -s docker-compose-ssl.yml docker-compose.yml
2015-11-30 07:09:07 +01: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
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
docker-compose stop
## Removing
2015-11-30 07:09:07 +01:00
### Remove the containers
2015-11-30 07:09:07 +01:00
docker-compose stop && docker-compose rm
2015-11-30 07:09:07 +01:00
### Remove the data and settings of your mattermost instance
sudo rm -rf volumes
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
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).
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/
[prod-ubuntu.rst]: https://github.com/mattermost/docs/blob/master/source/install/prod-ubuntu.rst