There is a reason that cloud services are popular with businesses. How does self-hosting this provide value to your customers in line with the time that you spend on IT tasks instead of your product? Do you have enough faith in your build that it will be secure and reliable? If you have downtime, does your business have flexibility to accommodate you doing IT work for hours without loss of revenue? If you go on vacation, who is on call?
I’m not saying you shouldn’t, but do consider the time investment and risks. There are alternatives to M365 and Google.