Docker Compose from 1.7 -> 2.2 and...To toml or not to toml

Hi. New here.

Was reading this article and it's written to correspond with Traefik 1.7: https://chlee.co/step-by-step-guide-on-how-to-host-and-deploy-an-aspnet-core-app-with-ssl-using-letsencrypt-traefik-and-docker-take-2/

Would like someone to look this over and see which obvious changes need to be made for 2.2 and if there's a problem with this particular approach demonstrated in the article. I've included the configurations from the article below.

The author suggests creating a volume for the traefik.toml file as well as the acme.json file. Most of the examples I've seen don't suggest creating a volume for the toml file, so I didn't know if the toml file needs direct configuration or it the Traefik labels in the Docker Compose took care of all this. Maybe someone could explain that part. Thanks for reviewing.

traefik.toml file:

logLevel = "INFO"  

defaultEntryPoints = ["http", "https"]  

[entryPoints]   
  [entryPoints.dashboard]     
  address = ":8081"
    [entryPoints.dashboard.auth]       
      [entryPoints.dashboard.auth.basic]         
      users = ["admin:$apr1$utgBkEIc$wRnM2PE8e97y3/eSU985b0"]   
  [entryPoints.http]     
   address = ":80"       
    [entryPoints.http.redirect]        
    entryPoint = "https"     
  [entryPoints.https]     
    address = ":443"       
     [entryPoints.https.tls]  


[api] 
entrypoint="dashboard"
dashboard=true

[acme] 
email = "your-email@email.com" 
storage = "acme.json" 
entryPoint = "https" 
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"

[docker] 
domain = "yourdomain.com" 
watch = true 
network = "traefik_network"

The Traefik Docker Compose file:

version: '3.5'

services:
  reverse-proxy:
    image: traefik:1.7.9 # The official Traefik docker image
    container_name: traefik
    ports:
      - "80:80"     # The HTTP port
      - "443:443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock #So that Traefik can listen to the Docker events
      - /usr/local/deploy/traefik.toml:/traefik.toml
      - /usr/local/deploy/acme.json:/acme.json
    networks:
      - web
    labels:
      - traefik.frontend.rule=Host:dashboard.yourdomain.com # the subdomain for the dashboard
      - traefik.port=8081
networks:
  web:
    name: traefik_network

The aspdotnet/app Docker Compose file:

version: "3.5"  

services:   
  aspnet_demo:     
    image: microsoft/dotnet-samples:aspnetapp     
    container_name: aspnetcore_sample     
    networks:
     - web
    labels:
      - traefik.docker.network=traefik_network
      - traefik.backend=aspnetdemoweb
      - traefik.frontend.rule=Host:aspnetdemo.yourdomain.com
      - traefik.enable=true
      - traefik.port=80 # the port of the container
 
networks:
  web:
    name: traefik_network

There are a few ways to configure Traefik.
You can certainly do it all via labels instead of the .toml file