Failed to Bootstrap due to out of memory

I recommend using Discourse’s official Docker guide:

You won’t have any issues with the above guide.