Stuck in infinite loop in Mac terminal after source ~/.bashrc

If you can’t find .bashrc . . . wait. You don’t need to source .bashrc since it gets run when you log in.

I recommend that you punt on that and use Beginners Guide to Install Discourse for Development using Docker.