Error AtlasError Documentation and Resolution

Docker Compose does not support circular extends references

Circular references with `extends` are not supported

Docker Compose found a circular reference between services that use extends, so the configuration graph cannot be resolved safely.

Circular references with `extends` are not supportedcompose
Circular references with `extends` are not supported
  • Two or more services extend one another directly or indirectly.
  • A shared base-service pattern introduced a recursive reference.
  • The Compose file inheritance graph is no longer acyclic.
  1. Break the recursive extends chain so inheritance flows in one direction only.
  2. Extract shared settings into a neutral base service or extension pattern that does not recurse.
  3. Re-validate the Compose file after simplifying the service inheritance structure.
Docker Docs: Compose file services
Docker Compose circular extends references are not supported | Error Atlas