title: Connecting to Mongodb atlas from Node.js docker services
body: <p>So I am learning node.js,docker and mongodb.And I have a few doubts.
  I have three tasks of a service(replicas) (node.js in docker services).The service is supposed to access a mongodb database.I have two options:</p>
  
  <ol>
  <li>Use atlas-this sounds simple to me as I am a beginner.</li>
  <li>Use mongodb containers-Which I believe could be a little more work.</li>
  </ol>
  
  <p>So the question is if I use MongoDB atlas and connect to the database hosted on atlas is the transfer of data between node.js and atlas secure by default?what should be done to "secure" the transfer of data between the node.js container service and the Mongodb atlas?
  If I choose the second option above should all three replicas/tasks communicate with only ONE mongodb container?</p>