Or just use Fossil. It's already a distributed alternative to github. Every fossil install includes a built in web server with bug tracking and a wiki.
Do you know if it is possible to use fossil locally pushing/pulling to/from git remote repositories? Thinking of some kind of bridge like git-svn.