What & why
写了一些 nodejs
代码之后,深感调试很不方便。百度以及 SO 了一段时间(额,一个多小时)发现了一个很不错的解决方案:
使用 mongo 镜像是很方便的,直接使用官方镜像就好了,为了今后更方便使用,这里给出依据 restheart-docker 中的 docker-compose.yml 裁剪出一个还不错的方案(也就是剪除 restheart 部分而已):
As I really really appreciate it that we can have an isolated
development environment, when I heard pycharm
can debug with docker, I was more than happy. However, things are not that easy.