That’s too less of ram to get discourse working. Plus, I don’t think heroku can run docker.
Okay. How about cloud.ibm.com ? That has 35 gb.
I think if you use IBM Cloud (Cloud Virtual Server) with at least 1 GB RAM it should be enough to get you started.