consider gitbucket as an alternative to #githhub https://github.com/gitbucket/gitbucket
it's written in scala and can be deployed as a single jar using relatively little ram.
it has many of the features github has including wiki, pages, issue tracking, pull requests, reviewing, web hooks
it has an active community with new releases once per month
it has a plugin system allowing for extensions to be added simply