Run and debug a Spring Boot application using Docker Compose

Last modified: 11 October 2024

You can use IntelliJ IDEA to run and debug a Spring Boot application running in multiple Docker containers under Docker Compose. This tutorial describes how to run two Docker Compose services inside containers in the same virtual network: a simple Spring Boot application and a MySQL database. The application can receive GET requests that add entries to the database. This tutorial also describes how you can set breakpoints and debug your application.

For features related to Spring, refer to Enable Spring support in IntelliJ IDEA.