I think it's fair to point you at my thing: https://platform.sh has been doing something similar since 2015. Based on containers (although that is not the abstraction we expose, in that sense we are more similar to Heroku). Production represents the master branch. Every other branch gets an automatically generated ephemeral staging with a full clone of all the data (and no specific configuration required). With support for microservices and multiple data backends. The whole operation takes about a minute. But this is not something you can run on your own tenant. To get production cloning (for what should be obvious reasons) we need to actually run production.