Dynamic File Configuration Dir not clear how to use?

Should I be able to do the following?

in traefik.yml:

providers:
  docker:
    exposedByDefault: false
  file:
    directory: /etc/traefik/configuration
    watch: true
...

docker-compose.yml:

version: "3.7"

services:
  traefik:
    image: "traefik:latest"
    restart: unless-stopped
    container_name: traefik
    ports:
      - "443:443"
      - "80:80"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./traefik.yml:/etc/traefik/traefik.yml:ro
      - ./configuration:/etc/traefik/configuration:ro
      - ./certs:/etc/traefik/acme
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.traefik-secure.service=api@internal"
      - "traefik.http.routers.traefik-secure.rule=Host(`traefik.my.domain`)"
      - "traefik.http.routers.traefik-secure.entrypoints=web-secure"
    networks:
      - web

networks:
  web:
    name: web
    external: true

configuration/api.yml:

api:
  dashboard: true
  debug: true

In other words should I be able to have my traefik.yml file watch a configuration directory, and then split up my configuration into multiple files? fx configuration/api.yml configuration/tls.yml configuration/middleware.yml etc?

Traefik uses static (entrypoints, api, logging, certresolver, providers) and dynamic (custom TLS, routers, services) config.

Static config is automatically loaded from traefik.yml or declared with command (decide for one).

Dynamic config is loaded from a provider (declared in static config), usually from docker via labels ("Configuration Discovery") and/or from file (single file or folder).

Check simple Traefik example.