title: Traefik Docker with wildcard domain
body: <p>I'm trying to setup my Traefik Docker with Let's Encrypt SSL: </p>
  
  <p>Here is my <code>traefik.toml</code></p>
  
  <pre><code>defaultEntryPoints = ["http", "https"]
  
  [entryPoints]
    [entryPoints.dashboard]
      address = ":88"
      [entryPoints.dashboard.auth]
        [entryPoints.dashboard.auth.basic]
          users = ["admin:19081987"]
    [entryPoints.http]
      address = ":80"
        [entryPoints.http.redirect]
          entryPoint = "https"
    [entryPoints.https]
      address = ":443"
        [entryPoints.https.tls]
  
  [api]
  entrypoint="dashboard"
  
  [acme]
  email = "myemail@gmail.com"
  storage = "acme.json"
  entryPoint = "https"
  onHostRule = false
    [acme.httpChallenge]
    entryPoint = "http"
  
  [docker]
  domain = "mysite.com"
  watch = true
  network = "web"
  
  [[acme.domains]]
     main = "mysite.com"
  [[acme.domains]]
     main = "*.mysite.com"
  </code></pre>
  
  <p>My <code>docker-compose</code> file with WordPress and Adminer </p>
  
  <pre><code>version: '3.7'
  services:
     wordpress:
       depends_on:
         - db
       image: wordpress:latest
       volumes:
         - ./wordpress_files:/var/www/html
         - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
       restart: always
       networks:
         - web
       container_name: mysitewp
       environment:
         WORDPRESS_DB_HOST: db:3306
         WORDPRESS_DB_USER: user
         WORDPRESS_DB_PASSWORD: pass
         WORDPRESS_DB_NAME: mysitedp
       labels:
         - "traefik.backend=mysitewp"
         - "traefik.docker.network=web"
         - "traefik.frontend.rule=Host:mysite.com"
         - "traefik.enable=true"
         - "traefik.port=80"
  
     db:
       image: mysql:5.7
       volumes:
         - ./db_data:/var/lib/mysql
       restart: always
       networks:
         - web
       container_name: mysitedb
       environment:
         MYSQL_ROOT_PASSWORD: pass
         MYSQL_DATABASE: mysitedb
         MYSQL_USER: user
         MYSQL_PASSWORD: pass
  
     adminer:
       image: adminer
       restart: always
       networks:
         - web
       ports:
         - 89:8080
       labels:
         - "traefik.backend=adminer"
         - "traefik.docker.network=web"
         - "hostname=adminer"
         - "traefik.frontend.rule=Host:adminer.mysite.com"
         - "traefik.enable=true"
         - "traefik.port=89"
       depends_on:
         - db
  
  networks:
     web:
       external: true
  </code></pre>
  
  <p>All working fine (I can acess my site using https) except Adminer (cannot access <code>adminer.mysite.com</code>). I have checked Traefik logs</p>
  
  <pre><code>unable to generate a certificate for the domains
  </code></pre>
  
  <p>It seem Traefik cannot generate certificate for wildcard domain (*.mysite.com). Any config wildcard domain with Traefik and Let's Encrypt?</p>