You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just like services, networks, and volumes, anchors should be referenceable from includes. Per the spec"Any volumes, networks, or other resources pulled in from the included Compose file can be used by the current Compose application for cross-service references."
include is not aa yaml feature, but a compose one: the included model is a set of resources your application can rely on, not some yaml entries you can use. each individual yaml file need to be valid and complete from a yaml point of view.
Description
Just like services, networks, and volumes, anchors should be referenceable from includes. Per the spec "Any volumes, networks, or other resources pulled in from the included Compose file can be used by the current Compose application for cross-service references."
With a shared.yml file like:
and a relying postgres.yml file like:
There is an error at the anchor reference line (
<<: *default-service
) that says:yaml: unknown anchor 'default-service' referenced
Steps To Reproduce
docker-compose -f postgres.yml config
Compose Version
Docker Environment
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: