I spent much of yesterday and today setting up a gogs.io server on one of my computers. In the past, I considered hosting private repositories on github but honestly, given the news of the Microsoft purchase of them, I really don't like the idea of paying Microsoft any money.
It seems to work a lot like github as the interface goes. It appears to be written in the Go language behind the scenes. I won't call it easy to setup. It did eventually give up to my bull-headedness and create a functional installation.