IntelliJ IDEA
 
Get IntelliJ IDEA

Run a database in a Docker container

Last modified: 10 January 2025

You can use Docker to run a database in a container as if it were a remote server, and test how your application interacts with it. This tutorial describes how to run a Docker container with a PostgreSQL server and connect to it using IntelliJ IDEA.

For database management features, refer to Database Tools and SQL.

For more information about working with database sources in IntelliJ IDEA, refer to Database Tools and SQL.