After Traefik docker-compose install, dashboard invisible

Hi,
I followed the following tutorial to install Traefik 2 with Docker Compose : https://medium.com/@containeroo/traefik-2-0-docker-a-simple-step-by-step-guide-e0be0c17cfa5

From my DNS zone I have an A redirection to: traefik.mydomain.ovh.
But it was impossible to access the dashboard. Would you have an idea to solve this problem ? Did I make a mistake ?

My docker-compose.yml file :

version: '3'

services:
  traefik:
    image: traefik:v2.0
    container_name: traefik
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    networks:
      - proxy
    ports:
      - 80:80
      - 443:443
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./data/traefik.yml:/traefik.yml:ro
      - ./data/acme.json:/acme.json
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.traefik.entrypoints=http"
      - "traefik.http.routers.traefik.rule=Host(`traefik.mydomain.ovh`)"
      - "traefik.http.middlewares.traefik-auth.basicauth.users=admin:password"
      - "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
      - "traefik.http.routers.traefik-secure.entrypoints=https"
      - "traefik.http.routers.traefik-secure.rule=Host(`traefik.mydomain.ovh`)"
      - "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
      - "traefik.http.routers.traefik-secure.tls=true"
      - "traefik.http.routers.traefik-secure.tls.certresolver=http"
      - "traefik.http.routers.traefik-secure.service=api@internal"

networks:
  proxy:
    external: true

My acme.json file :

api:
  dashboard: true

entryPoints:
  http:
    address: ":80"
  https:
    address: ":443"

providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false

certificatesResolvers:
  http:
    acme:
      email: administrator@mydomain.ovh
      storage: acme.json
      httpChallenge:
        entryPoint: http

Hello,

A full working example:

version: '3.7'

services:
  traefik:
    image: traefik:v2.2.0
    container_name: traefik
    command:
      - --api
      # EntryPoints
      - --entryPoints.web.address=:80
      - --entrypoints.web.http.redirections.entrypoint.to=websecure
      - --entrypoints.web.http.redirections.entrypoint.scheme=https
      - --entryPoints.websecure.address=:443
      # Providers
      - --providers.docker.exposedByDefault=false
      # Let's Encrypt
      - --certificatesResolvers.resolver.acme.email=administrator@mydomain.ovh
      - --certificatesResolvers.resolver.acme.storage=acme.json
      - --certificatesResolvers.resolver.acme.httpChallenge.entryPoint=web
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    ports:
      - 80:80
      - 443:443
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./data/acme.json:/acme.json
    labels:
      traefik.enable: true

      traefik.http.routers.traefik.rule: Host(`traefik.mydomain.ovh`)
      traefik.http.routers.traefik.entrypoints: websecure
      traefik.http.routers.traefik.service: api@internal
      traefik.http.routers.traefik.middlewares: traefik-auth
      traefik.http.routers.traefik.tls.certresolver: resolver

      traefik.http.middlewares.traefik-auth.basicauth.users: user:$$apr1$$q8eZFHjF$$Fvmkk//V6Btlaf2i/ju5n/ # user/password

@ldez, Thanks for your help.
I now have a page: 404 not found, once the container is launched.
Any ideas?

I forgot to define the auth middleware, I edited my post.

@ldez,
I integrated your new line, I am now allowed to connect, but the login and password is not recognized, it asks me again each time.
Moreover I have the impression that the SSL certificate could not be installed.
The right e-mail is filled in.