The East German KC85/2../4 line was one example of this (scroll down for an 'expansion tower', theoretically such a tower could be 64 units high (the system could address up to 256 expansion modules, and one expansion unit had 4 slots):
I also remember a similar module system for the Sinclair ZX computers, but my google fu is failing me at the moment. Such 8-bit home computers usually had their entire system bus exposed via a connector at the back or side, so even if the original manufacturer didn't support a stackable module system, 3rd parties could jump in and offer a solution.
https://floooh.github.io/virtualkc/p010_kc85.html
I also remember a similar module system for the Sinclair ZX computers, but my google fu is failing me at the moment. Such 8-bit home computers usually had their entire system bus exposed via a connector at the back or side, so even if the original manufacturer didn't support a stackable module system, 3rd parties could jump in and offer a solution.