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

Run a database in a Docker container

Last modified: 08 March 2021

Required plugins: Docker and Database Tools and SQL (bundled)

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.

Before you begin, make sure that Docker integration is properly configured.

For more information about working with database sources in IntelliJ IDEA, see Database tools and SQL.