dockerize
dockerize copied to clipboard
jsonQuery usage question
I'm not quite sure how to use it :/
I'm trying to build docker for nginx proxy and I could use json to define upstreams but I don't know how to build env file. At the moment I use simple --env-file for docker run but its construction doesn't allow for json - please share some light for it.
Also It would be nice to extend your - extremaly useful - script to use loops for templates.
I was looking for a similar solution so the question should read "How to read json content from file instead of .Env"
I can't see that it's possible in docker{-compose} to ask for file contents as an Env value.
I also can't see how to ask GoLang templates to use a file as content instead of just referencing and Env key
In my use case, I want to take the acme.json file from traefik and parse it with jsonQuery to extract certs and keys for delivering to another service (pgbouncer) TLS config.