Dynamic Configuration not accepting Environmental Variables

Greetings all

I have been trying to implement environmental variables into my dynamic configuration file
I have referenced it in the docker-compose file (under environment) and have used the correct syntax in the dynamic config yaml ({{env "VARIABLE"}}).
I always get 'Argument Invalid: empty host'

In addition, can I suggest that you can use variables from a .env by using ${VARIABLE}?
Having to reference variables twice clutters the workflow.

Regards
Zayne

It seems you want to use rule: Host() with env var within Docker.

That has been done before, just check some posts on this forum. I think when you scan the last twenty or so Docker related posts you will find an example. You could link it here for future reference.