
Postgres with Docker #įor this post, we will use the official Postgres docker alpine image from DockerHub. Given the prerequisites have been mentioned we can move forward to the next section where we will run some docker commands. We will use an existing application/API with Node.js and Postgres replacing a remote Postgres with a local one running with Docker and Docker compose, so it would be advisable to read the previous post about it.


There are many good reasons to use any database like Postgres with Docker for local development, below are some good reasons: Why use Postgres with docker for local development # Adding Postgres with Docker to an existing Node.js project.Why use Postgres with docker for local development.

In this post, we will look into how to run and use Postgres with Docker and Docker compose step-by-step keeping things simple and easy. Running Postgres with Docker and docker-compose makes it very easy to run and maintain especially in a development environment. This official feature matrix shows the wealth of features Postgres has. Postgres (a.k.a PostgreSQL) is an open-source, standards-compliant, and object-relational database been developed for more than 30 years now. Docker has shot up in popularity over the years.
