From the discussion yesterday on "HN for data scientists"[0], there was mention of a service which enables one to deploy "HN for X"[1], as well as some discussion that (some version of) the code for HN is available[2].
[0] https://news.ycombinator.com/item?id=8696443