How to use YAML anchors as a template for Docker Compose services - also fixes depends_on cannot be extended
How to use YAML anchors as a template for Docker Compose services - also fixes depends_on cannot be extended After getting the services with 'depends_on' cannot be extended error I started looking for a solution that also better reflects that we’re actually cloning a service and changing some parameters instead of a ‘is a’ relation.
Jeroen van Wilgenburg’s Blog