MongoDB Up And Running

Thank you again! It appears the problem was in the orb circleci/node@3.0.0. I didn’t realize that line was completely superfluous.

I have also upped the node version from 10 to 12.

Here is the final config file, which works for a web app in Node that opens a connection to a Mongo 4.4 server with the Mongo 4.0 client installed:

version: 2.1
jobs:
  build:
    docker:
      - image: circleci/node:12-browsers
      - image: circleci/mongo:4.4
        environment:
          MONGO_USERNAME: mongouser
          MONGO_PASSWORD: mongopass
    steps:
      - run:
          name: MongoDB Install
          command: |
             sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
             echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
             sudo apt-get update
             sudo apt-get install -y mongodb-org-shell
      - setup_remote_docker
      - run:
          name: Waiting for Mongo
          command: dockerize -wait tcp://localhost:27017 -timeout 1m
      - checkout
      - run:
          name: Get versions
          command: |
              node -v
              npm -v
              mongo -v
              mongo localhost --eval "db.version()"