Database installation and configuration

The first step is to install the database. For this microservice, we will use MongoDB, and, as was done for the previous microservices, we will use Docker to install and handle it.

You should install and configure the Docker image, with the following requirements:

  • Set the name of your image to mongo_thorntail.
  • Expose, via TCP, the default MongoDB—27017.
  • Run the container in the background and print the container ID.

After that, the MongoDB image should be launched as a container. Launch the command that will verify this and give you a list of the created containers and their relative statuses.

You should mainly focus on the following attributes:

  • Status: To verify that the container is up and running
  • Ports: To verify that the default port, 27017, is exposed
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset