There is no specific configuration for Mac for sonarqube. you can follow this doc right here for the installation and read about the requirements here.
It is advised to run the database on a dedicated system but within the same subnet as sonarqube to reduce latency.