# HTTPS / SSL setup via docker

**URL:** <https://forums.rocket.chat/t/https-ssl-setup-via-docker/22823>\
**Category:** Community Support\
**Tags:** docker\
**Created:** [April 15, 2026, 12:26pm UTC](https://forums.rocket.chat/t/https-ssl-setup-via-docker/22823 "2026-04-15T12:26:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![g077](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@g077](https://forums.rocket.chat/u/g077)\
**Post date:** [April 15, 2026, 12:26pm UTC](https://forums.rocket.chat/t/https-ssl-setup-via-docker/22823/1 "2026-04-15T12:26:24Z")

</div>

### Description

I followed [the setup guide for docker](https://docs.rocket.chat/docs/deploy-with-docker-docker-compose) and chose the production environment.  
So my .env looks like this:

```auto
DOMAIN=mydomain.de
ROOT_URL=https://mydomain.de
RELEASE=8.0.1
# Change to true after you set your domain and valid lets encrypt email
LETSENCRYPT_ENABLED=true
LETSENCRYPT_EMAIL=cert@mydomain.de
TRAEFIK_PROTOCOL=https

```

However, when typing mydomain. de in a browser, I am redirected to http:// mydomain. de which states:

```auto
404 page not found

```

When manually changing http:// mydomain. de to https:// mydomain. de it states, that the connection is not safe, and asks me if I trust the website.

Additionally, it places a red triangle icon in front of the url.

What can I do to get an SSL Certificate and have all visitors to be redirected to 443?

### Server Setup Information

- Version of Rocket.Chat Server: 8.0.1
- Operating System: Ubuntu
- Deployment Method: Docker
- Number of Running Instances: 1
- DB Replicaset Oplog: -
- NodeJS Version: v22.22.0
- MongoDB Version: -
- Proxy: traefik
- Firewalls involved: no

### Any additional Information

There are spaces in the URL, because new users can only add to links to their posts.

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [April 15, 2026, 4:32pm UTC](https://forums.rocket.chat/t/https-ssl-setup-via-docker/22823/2 "2026-04-15T16:32:19Z")

</div>

Please list the commands you used to start rocket.

Have you checked the traefik logs?
