Follow the guide
You should be using
environment: - TRAEFIK_STATIC_CONFIG_PATH=/etc/traefik/traefik_config.yml
In the middleware manager docker compose