Docker
Docker Compose profile references a service that is not enabled
Docker Compose can fail when the active profile set excludes a referenced service, because profile filtering does not automatically enable linked or shared-resource dependencies.
Docker
Docker Compose can fail when the active profile set excludes a referenced service, because profile filtering does not automatically enable linked or shared-resource dependencies.
Observed message
Compose returns an error when a service references another service that was ignored by active profiles.
Why it happens
How to fix it
Official reference
Docker Docs: Compose profiles referenceRelated errors
Explore more