Forked from https://gist.github.com/bvis/b78c1e0841cfd2437f03e20c1ee059fe
So that i may implement https://gist.github.com/bvis/b78c1e0841cfd2437f03e20c1ee059fe#gistcomment-2317693
Sample script that allows you to define as environment variables the name of the docker secret that contains the secret value. It will be in charge of analyze all the environment variables searching for the placeholder to substitute the variable value by the secret.