And there is a separate concept of a configurable application which can completely reshape its component graph according to some high level configuration flags (like database=prod|dummy), we call it "multi-modal applications".
And we created the perfect tool for wiring them: https://izumi.7mind.io/distage/index.html