Would envconsul and vault serve the purpose of provisioning environment variables during docker runtime for standard containers?

I have some standard containers like InfluxDB, MariaDB and I am on the lookout of provisioning the initial environment variables into my docker-compose.yml. A standard practice would be to pass the env vars via file that are on the filesystem. I wish to test, whether I could avoid saving such env vars on file and if I could obtain through vault.

There have been changes to the docker-compose from v1.29.0 which now provides the concept of init containers like that of Kubernetes. It has not made its way to the compose spec documentation but there is a StackExchange Query describing the usage.

Would there be some resources / repositories etc. that I can peep into in order to understand whether envconsul/vault would be able to provide me a safer bootstraping of standard container?