在 Mac 终端中执行 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.