我使用docker-compose来运行由node,mongodb,nginx创建的项目;然后我使用docker up -d nginx开始我的项目。但是我还没有找到用'--auth‘运行mongodb镜像的配置,那么如何在compose启动mongodb时添加'--auth’呢?这是我的docker-comp
使用默认代码提供的不起作用(mongo停止使用退出代码1),所以我尝试了大量的配置,留下了下面的docker-复合文件(这个文件实际上工作到mongo启动并显示的程度)。/lib/error.js:31:11)
mongoviewer_1 | at /node_modules/mongodb-core/lib/connection/pool.js:483:72mongoviewer_1 | at authenticateStraggl
docker-compose build --no-cache --force-rmERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.但是当我尝试去