From the course: Creating Spring Boot Microservices
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Spring Boot Docker Compose - Spring Boot Tutorial
From the course: Creating Spring Boot Microservices
Spring Boot Docker Compose
- [Instructor] Docker Hub is an online repository of dockerized third party images similar to Maven Central, which is the repository of Maven dependencies. You can even create your own Docker Hub account to store your own images. I'm going to search for MySQL. In this video, we will switch from the H2 to the MySQL database by downloading the MySQL docker image from Docker Hub. But first we need to orchestrate the interaction between the Explore Cali JP application and MySQL. Running related containers is called orchestration and this can be done manually with the Docker command line interface or through automated tools such as Docker Compose, Docker Swarm and Kubernetes. For local development, Docker Compose is a good choice over manual CLI. Docker Compose requires a Y-A-M-L, or YAML file that defines the desired deployment relationships. The command docker-compose up begins the orchestration. Detached mode runs it in the background. Docker-compose down tears down everything. Hitting…