I’m running a server with GitLab and (multisite) Discourse. It has 6 GB RAM and 1 GB swap, and is running fine:
(I try to make sure that GitLab and Discourse aren’t updating simultaneously, though ;-))