Skip to content

Instantly share code, notes, and snippets.

View letientai299's full-sized avatar
💭
Need more caffeine....

Tai letientai299

💭
Need more caffeine....
View GitHub Profile
@letientai299
letientai299 / README.md
Created September 28, 2017 16:53 — forked from bvis/README.md
Docker Env Vars expanded with secrets content - fork to make the placeholder works in docker cloud yml file

Variables by Secrets

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.

Usage

You can define the next environment variables: