n-Tier NextCloud setup

I’m looking for any article or any instructions on how to setup NextCloud on a n-Tier setup.
I’m Basically gonna setup on few raspberry pis.
I’m going to use Nginx as web server, Mariadb or MongoDB as Database servers.
My data will reside on a separate file server: This server is another 2 Pis running GlusterFS.
(Please Note that all servers are Pis).

My main requirement is on how to setup NextCloud as a 4-Tier system


Thanks Reiner_Nippes

I’ll try this and get back

@JasonBayton @nachoparker perhaps something that you find interesting…

Indeed, I did something not dissimilar here -

It needs an update, but essentially it’ll work as long as you note the challenges and updates.