PostgreSQL docker using Docker Compose

Prabod Prasanga
Feb 19, 2020

--

First of all, you need to have docker setup in your machine.

Create a docker-compose.yml file like below.

Open the terminal and navigate to the file location where you saved in the previous stage.

Use below command to start docker-compose.

docker-compose up

Install pgAdmin client and connect started PostgreSQL docker with providing the connection details.

--

--