# How to enable ssl in a docker installation?

**URL:** <https://forum.mattermost.com/t/how-to-enable-ssl-in-a-docker-installation/873>\
**Category:** Installation\
**Created:** [February 9, 2016, 5:26pm UTC](https://forum.mattermost.com/t/how-to-enable-ssl-in-a-docker-installation/873 "2016-02-09T17:26:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gusgonnet/32/936_2.png) [@gusgonnet](https://forum.mattermost.com/u/gusgonnet)\
**Post date:** [February 9, 2016, 5:26pm UTC](https://forum.mattermost.com/t/how-to-enable-ssl-in-a-docker-installation/873/1 "2016-02-09T17:26:23Z")

</div>

Hi,  
I have installed Mattermost with Docker following [the One-line Docker Install](https://github.com/mattermost/platform/blob/master/doc/install/Docker-Single-Container.md#one-line-docker-install). Amazing.

Now, is there a way to enable SSL (or maybe I should state HTTPS?) to protect the sessions to the server with encryption?

thank you  
Gustavo.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gusgonnet/32/936_2.png) [@gusgonnet](https://forum.mattermost.com/u/gusgonnet)\
**Post date:** [February 16, 2016, 2:14pm UTC](https://forum.mattermost.com/t/how-to-enable-ssl-in-a-docker-installation/873/2 "2016-02-16T14:14:59Z")

</div>

hum, as stated in this post:  
[http://docs.mattermost.com/install/prod-ubuntu.html](http://docs.mattermost.com/install/prod-ubuntu.html)

> We use Nginx for proxying request to the Mattermost Server. The main benefits are:
> 
> - SSL termination
> - http to https redirect
> - Port mapping :80 to :8065
> - Standard request logs

I guess I need to check if the docker installation has Nginx in it.

---

<div class="post-metadata">

**Author:** ![it33](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/it33/32/3_2.png) [@it33](https://forum.mattermost.com/u/it33)\
**Post date:** [February 19, 2016, 6:12am UTC](https://forum.mattermost.com/t/how-to-enable-ssl-in-a-docker-installation/873/3 "2016-02-19T06:12:50Z")

</div>

The one-line Docker install is designed for only a preview, not production. Please see [install guides](http://www.mattermost.org/installation/) and find the production Docker deployment created by the community as a starting point for what I believe you want to set up?
