Electrs is a dependency some users might not need, and making it an optional app would make the bae a bit smaller. I think this was your original plan (From what I see in te Telegram history), and it could be the first incompatible app that does only work if the node is not pruned (Pruned nodes aren't implemented yet). Not sure if you want to implement it, but it might be good to make it an external app to
I personally think it is better to keep electrs as part of the base services as :
But interested in @mayankchhabra and @lukechilds thoughts on this.
I would appreciate an optional electrs server or at least an option to throw it out easy. It's the process that uses by far the most CPU.
You can allocate a maximum share of CPU and memory when using docker containers.
https://github.com/compose-spec/compose-spec/blob/master/deploy.md#resources
As long as it is running unconstrained, it will cause lots of support requests, and crashes. Look at the load on mine.

Most helpful comment
I personally think it is better to keep electrs as part of the base services as :
But interested in @mayankchhabra and @lukechilds thoughts on this.