Enable a secure dashboard using a PathPrefix

There are no bug.

$ curl -k  https://subdomain.localhost/traefik/
404 page not found

You forgot to define your entry point on the traefik router and on all routers:

    labels:
      #### set core configs
      - "traefik.enable=true"

      - "traefik.http.routers.traefik.rule=Host(`mydomain.club`) && (PathPrefix(`/traefik`) || PathPrefix(`/api`))"
      - "traefik.http.routers.traefik.service=api@internal"
      - "traefik.http.routers.traefik.entrypoints=websecure"
      
      #### stripprefix for dashboard
      - "traefik.http.routers.traefik.middlewares=mystrip"
      - "traefik.http.middlewares.mystrip.stripprefix.prefixes=/traefik"
      
      #### set TLS
      - "traefik.http.routers.traefik.tls=true"
      - "traefik.http.routers.traefik.tls.certresolver=leresolver"
      
      #### set a rule to redirect all http requests to https
      - "traefik.http.routers.http-catchall.entrypoints=web"
      - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
      - "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
      - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"

Also remember that label key (by example traefik.http.routers.traefik.middlewares) must be unique: it's a map.
So to use multiple middlewares:

traefik.http.routers.traefik.middlewares=mystrip,myauth