Skip to content

Instantly share code, notes, and snippets.

@jedahan
Created November 11, 2023 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedahan/0e06d8253698f6f8771a8c18c6faab04 to your computer and use it in GitHub Desktop.
Save jedahan/0e06d8253698f6f8771a8c18c6faab04 to your computer and use it in GitHub Desktop.
this shows how the template_driver option in a compose file fails silently
version: "3.8"
secrets:
codename:
file: codename
configs:
greeting:
file: greeting
template_driver: golang
services:
app:
image: alpine
secrets: [ codename ]
configs: [ greeting ]
command: [ sh, '-c', "/greeting" ]
echo {{ secret "codename" }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment