IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Run and debug a Spring Boot application using Docker Compose

Last modified: 21 June 2023

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: 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 using a remote debug configuration.

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

You can connect to the database at jdbc:mysql://0.0.0.0:13306/DOCKERDB. For example, you can use the Database tool window to add the database as a data source and check the entitybus table. Use the following connection settings:

Connect to MySQL