In the following section, we will look into some good to have things before diving into the commands to run Postgres with Docker. You can read more about this on why to use docker. When a new team member joins, the new member can get started in hours, it does not take days to be productive.Generally with docker if it runs on your machine it will run for your friend, on a staging environment and production environment given the version compatibility is maintained.Using multiple versions of PostgreSQL as per project or any other need is very easy.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.