Summary
In this chapter, we learned how to break up an application that would normally be run in a virtual machine with multiple services (MongoDB, Redis, and Mosca) into a microservices-based architecture run as containers within Docker.
We learned how to navigate the Docker Hub website and find useful pre-made Docker containers that you simply download and run.
We also learned how to package our own microservices as Docker containers and how we can push them to Docker Hub for the public or development team members to use.
Several containers were used to launch the complete application as microservices communicated through ports mapped to the host's ports. This is not ideal, especially if you already have a WWW server running on port 80
; Mosca uses port 80
, too.
In the next chapter, we will discuss how we can use the Docker Compose tool to design complete microservice architecture applications and run them so that they have a private internal network and so host ports...