\"securityHeaders@docker\" does not exist" (same pb for 'securityHeaders@files')

Share your full Traefik static and dynamic config, and docker-compose.yml if used.

Note that your configs look a bit messed up, in yml every space can make a difference.

A similar question was asked and answered before, maybe that helps.