app | ||
db | ||
web | ||
.travis.yml | ||
docker-compose-nossl.yml | ||
docker-compose-ssl.yml | ||
LICENSE | ||
README.md |
Dockerfiles for Mattermost in production
Requirement
Installation
Install with SSL certificate
-
Create a symbolic link
docker-compose.yml
todocker-compose-ssl.yml
:ln -s docker-compose-ssl.yml docker-compose.yml
-
Put your SSL certificate as
web/cert/cert.pem
and the private key that has no password asweb/cert/private/key-no-password.pem
. If you don't have them you may generate a self-signed SSL certificate. -
Build and run mattermost
docker-compose up -d
-
Open
https://your.domain
with your web browser.
Install without SSL certificate
-
Create a symbolic link
docker-compose.yml
todocker-compose-nossl.yml
:ln -s docker-compose-nossl.yml docker-compose.yml
-
Build and run mattermost
docker-compose up -d
-
Open
http://your.domain
with your web browser.
Starting/Stopping
Start
docker-compose start
Stop
docker-compose stop
Removing
Remove the containers
docker-compose stop && docker-compose rm
Remove the data and settings of your mattermost instance
sudo rm -rf volumes
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.
More informations
If you want to know how to use docker-compose, see the overview page.
For the server configurations, see prod-ubuntu.rst of mattermost.