Ghost and Discourse on one VM

Hello. Is it possible to install Ghost and Discourse (to use as Ghost comments) on one VM? Maybe some tips to install guides for nubies? Thanks