docker-compose-viz icon indicating copy to clipboard operation
docker-compose-viz copied to clipboard

Doesn't source related .env file?

Open lonniev opened this issue 4 years ago • 1 comments

It appears that this nice utility does not pre-process the docker-compose.yml file with its .env file, if a .env file is used to parameterize the compose file. The result is that variable replacements are blanked in the generated image.

Is there an argument or step to use to get the visualizer to use environment variable substitutions before parsing the text of the compose specification?

lonniev avatar Jan 08 '21 19:01 lonniev

I realize your question is still unanswered, but I think one simple solution is to pre-process the compose file with docker compose config -f /path/to/compose/file before passing the output to the visualizer.

TimSpence avatar Feb 13 '24 03:02 TimSpence