Multiple app containers with respective mongodb containers?

  docker, mongodb, node.js

I’m planning to build a containerized app project, where each customer would have their own instance of an app in a docker container. They will also need to have some persistent data, so I want to create a mongodb container linked to each of the app containers (see the diagram – all objects on the diagram are docker containers). Just wanted to consult if this is an optimal design or someone could recommend better patterns to use in my scenario?

enter image description here

Source: Docker Questions

LEAVE A COMMENT