If you want your own custom domain with membership features, then Ghost is probably your best bet. It has built-in member features, open-source and can also be hosted on their Pro platform. They also don't take a cut from your memberships.
Haven't we learned anything from Medium?