Found this post while I was searching how to do the same thing. I found the answer in this post:
Also note that you can't use go templating (.env variables) in the static traefik config file. Only dynamic files as noted on this page:
Hope this helps you, and others in the future find the answer more easily.
1 Like