this is going to be very simple and short article about how you can virtualize nodejs and postgres using docker. This article will give you basic idea of docker and docker compose. Lets start by creating nodejs app with postgres.
yarn init -y
yarn add express pg