Https always responds 404 with docker provider

I want to set up a traefik instance with docker provider, tls and user defined certificate.

Here is my configuration:

/etc/traefik.toml

## traefik.toml
defaultEntryPoints = ["http", "https"]

[entryPoints]
  [entryPoints.web]
    address = ":80"

  [entryPoints.web-secure]
    address = ":443"

[providers.docker]
  exposedByDefault = false
[providers.file]
  filename = "/etc/traefik.config.toml"

[accessLog]

[api]
  insecure = true

/etc/traefik.config.toml

[tls.stores]
  [tls.stores.default]

[[tls.certificates]]
  certFile = "/etc/ssl/private/varmeco.de.crt"
  keyFile = "/etc/ssl/private/varmeco.de.key"

docker-compose.yml of application:

version: '3'
services:
  frontend:
    image: docker-registry.varmeco.de:5000/vms-frontend:master
    restart: always
    labels:
      - traefik.enable=true
      - treafik.http.routers.vms.tls=true
      - traefik.http.routers.vms.rule=Host(`vms.varmeco.de`)
      - traefik.http.routers.vms.entrypoints=web,web-secure
      - traefik.docker.network=web
    networks:
      - web
      - default
networks:
  web:
    external:
      name: web

docker-compose.yml of traefik

version: "3.3"

services:
  traefik:
    image: "traefik:v2.0"
    container_name: "traefik"
    networks:
      - web
      - default
    ports:
      - "80:80"
      - "8080:8080"
      - "443:443"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "/etc/traefik.toml:/etc/traefik/traefik.toml"
      - "/etc/traefik.config.toml:/etc/traefik.config.toml"
      - "/etc/ssl/private:/etc/ssl/private"
    restart: always
networks:
  web:
    external:
      name: web

Everything works fine when using http. It's serving my applications html files.

curl http://vms.varmeco.de

However when I'm using https I just get "404 page not found"

> curl https://vms.varmeco.de
404 page not found

I've also recoginzed that the requests to https are not looged in the access log.
Any ideas what I'm doing wrong?

Hello,

/etc/traefik.toml:

[entryPoints]
  [entryPoints.web]
    address = ":80"

  [entryPoints.web-secure]
    address = ":443"

[providers.docker]
  exposedByDefault = false
[providers.file]
  filename = "/etc/traefik.config.toml"

[accessLog]

[api]
  insecure = true

/etc/traefik.config.toml:

[[tls.certificates]]
  certFile = "/etc/ssl/private/varmeco.de.crt"
  keyFile = "/etc/ssl/private/varmeco.de.key"

docker-compose.yml of application:

version: '3'
services:
  frontend:
    image: docker-registry.varmeco.de:5000/vms-frontend:master
    restart: always
    labels:
      - traefik.enable=true
      - traefik.http.routers.vms.tls=true
      - traefik.http.routers.vms.rule=Host(`vms.varmeco.de`)
      - traefik.http.routers.vms.entrypoints=web-secure
      - traefik.docker.network=web
    networks:
      - web
      - default
networks:
  web:
    external:
      name: web

docker-compose.yml of traefik

version: "3.3"

services:
  traefik:
    image: "traefik:v2.0"
    container_name: "traefik"
    networks:
      - web
      - default
    ports:
      - "80:80"
      - "8080:8080"
      - "443:443"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "/etc/traefik.toml:/etc/traefik/traefik.toml"
      - "/etc/traefik.config.toml:/etc/traefik.config.toml"
      - "/etc/ssl/private:/etc/ssl/private"
    restart: always
    labels:
      - traefik.enable=true

      # global redirect HTTPS
      - "traefik.http.routers.catchall.rule=HostRegexp(`{any:.+}`)"
      - "traefik.http.routers.catchall.entryPoints=web"
      - "traefik.http.routers.catchall.middlewares=tohttps"

      # redirect HTTPS
      - "traefik.http.middlewares.tohttps.redirectScheme.scheme=https"
networks:
  web:
    external:
      name: web

With this configuration I get the 404 on both http and https.

Two more fixes. Add label - traefik.enable=true to the docker-compose.yml of traefik and change treafik.http.routers.vms.tls=true to traefik.http.routers.vms.tls=true in the docker-compose.yml of application.