Hi there,
is there a way to restructure the docker-compose file? Exclude common statements which apply to “all” services, mapping of global environment vars for all “services” ?
Thanks
David
Share and learn in the Docker community.
Hi there,
is there a way to restructure the docker-compose file? Exclude common statements which apply to “all” services, mapping of global environment vars for all “services” ?
Thanks
David
https://lzone.de/cheat-sheet/YAML
check out the section about Merging Keys.
It allows you to define global things once and later just refer to them.
hope this helps you.
Oh wow! Didn’t even know, YAML contains such “scriptoid” stuff Thanks I will try it out …