From the course: Creating Spring Boot Microservices

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Orchestrate with Docker Compose

Orchestrate with Docker Compose - Spring Boot Tutorial

From the course: Creating Spring Boot Microservices

Orchestrate with Docker Compose

- [Instructor] There are many ways to deploy these three microservices into a production environment which will hide the domain microservices behind an API gateway. We are going to simulate a production deployment locally with the Docker Compose engine. So it's not important for you to know how to create your own deployment with Docker Compose. I just wanted to show you how microservices play well in a containerized environment. So the goal of this is to build and deploy on one command line. So what do we want to do? You want to compile all your microservices, create Docker images for all three of your microservices with Jib, download the MongoDB image, launch and configure it, download the MySQL image, launch and configure it, launch and configure the explorecali-images, hiding port 8081, launch and configure the explorecali-jpa image and hiding port 8082, and launch and configure the gateway, exposing port 8080. And believe it or not, we can do it all on that one line with mvn clean…

Contents