Traefik not listening on SSL port (443)

I'm a total newb with Traefik. I have a docker web service and traefik as a reverse proxy for it, using docker-compose. I can see my site through traefik on port 80, but not on 443 yet. (My goal is to use ACME/LetsEncrypt, but I want to get it working without that first.) I expected if I set up an entry point at 443 it would terminate the SSL and forward to my service. I must be missing something simple.

My docker-compose.yaml:

version: "3"

services:
  dss_web:
    image: nginx
    container_name: dss_web
    ports:
      - 8000:80
    volumes:
      - ./sites/example:/usr/share/nginx/html
    labels:
      - "traefik.http.routers.dss_web.rule=Host(`example.com`)"
      - "traefik.http.routers.dss_web.tls=true"
      - "traefik.http.routers.dss_web.tls.certresolver=myresolver"


  reverse-proxy:
    image: traefik:v2.5
    container_name: reverse-proxy
    ports:
      - 80:80
      - 443:443
      - 8080:8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      # Traefik static config file
      - ./traefik.yaml:/etc/traefik/traefik.yaml
      # Traefik dynamic config files (nothing in here yet)
      - ./traefik-config:/etc/traefik/config

My static config (traefik.yaml):

providers:
  docker: {}
  file:
    directory: /etc/traefik/config
    watch: true

entryPoints:
  web:
    address: ":80"
  websecure:
    address: ":443"
    http:
      tls: {}
log:
  level: INFO

Hello @garyo

Seems you are missing the entry point configuration on your dss_web application.
Please see the section Routers
https://doc.traefik.io/traefik/routing/providers/docker/#routers
and the traefik.http.routers.<router_name>.entrypoints label that should be added.

1 Like