I have written a guide about how to install a private home server using Docker Swarm on Raspberry Pi. It has of course Nextcloud plus e-mail and other components (and more to come). I hope you find it useful or interesting:
Docker images are open sourced and available on GitHub, you can find the links in the post.
ßingen.