How to setup Varnish for Joomla

Hi all, there is a very good Cloudways guide about how to configure and install Varnish for wordpress.
There is no any guide for Joomla and even when you contact Cloudways aboutthis matter they say to post here for some help.

I don’t think this is the way but here it is: is there anyone who can help us integrating Varnish for Joomla?

Thank you