Setting up PostgreSQL Locally

Learn how to set up PostgreSQL locally using docker-compose.

We'll cover the following

Pre-requisites

To spin up a PostgreSQL database locally, you can use Docker. Be sure to install Docker if you haven’t already.

Docker compose

You can follow the steps mentioned below to set up and run the database:

  1. Create a docker-compose.yaml file in the root of the project:

Get hands-on with 1200+ tech skills courses.