Allow container scoped relations between subordinate services - 1.21

This is the backport to 1.21 of #1234 .