Docker Mastery

Build Apps That Deploy Anywhere

Deploying Two Web Containers and a Database

  • This section covers the deployment of two containerized web applications (Grade Submission API and Grade Submission Portal) to the cloud using Heroku. Environment variables will be created using the Heroku CLI to establish a connection between the containers.

  • The database will be deployed separately using MongoDB Atlas, a fully managed database service, because it is not feasible to deploy standalone database containers. Cloud Providers cannot simply provision persistent storage to individual containers out of the box.

  • Database containers rely on persistent volumes in order to persist data, which are typically provisioned within the confines of a Kubernetes cluster. The Kubernetes cluster is then deployed using a cloud provider that has the infrastructure to support it (AWS, Azure, Google Cloud). Kubernetes will be covered in my next course.