Skip to content

Docker Compose: missing tls=true label when certificateType is "none" with HTTPS enabled #4018

@luigigorlero

Description

@luigigorlero

To Reproduce

When configuring a domain on a Docker Compose application with HTTPS enabled and certificateType set to None, Dokploy does not generate the tls=true Traefik label on the websecure router. This causes Traefik to not terminate TLS for that domain, resulting in a 404 for all HTTPS requests, even though the container is running correctly and the custom certificate is being properly used.

  1. Upload a custom certificate in Settings → Certificates
  2. Create a Docker Compose application
  3. Add a domain with: HTTPS: ON / Certificate: None
  4. Deploy the stack
  5. Access the domain over HTTPS

Current vs. Expected behavior

The generated Docker Compose labels should include:

traefik.http.routers.<router-name>-websecure.tls=true

but the websecure router is generated without any TLS label

Compare this with certificateType: letsencrypt, which correctly generates:

- traefik.http.routers.<router-name>-websecure.tls.certresolver=letsencrypt

Workaround

Manually add the missing label directly in docker-compose.yml:

labels:
  - traefik.http.routers.<router-name>-websecure.tls=true

Provide environment information

Operating System:
  OS: Ubuntu 24.04.4 LTS
  Arch: arm64
Dokploy version: 0.28.6
VPS Provider: Hetzner

Which area(s) are affected? (Select all that apply)

Docker Compose

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions