We will learn how to run a Spring Boot microservice inside a Docker container

In a  previous post we learned how to install Docker and how to run a Java Hello Word inside the Docker container. Now we will learn how to run a Spring Boot microservice application within Docker.

Spring Boot Docker

Minimum dependencies of a Spring Boot microservice

The first thing we are going to do is define the dependencies we need. Spring Boot requires at least these dependencies:

org.springframework.boot:spring-boot-starter-web
org.springframework.boot:spring-boot-starter-test

#microservice #spring boot #docker

How to Create A Microservice with Spring Boot and Docker
1.45 GEEK