DEV Community

Discussion on: How To Build a CRUD RESTful API with Node.js, Prisma, and PostgreSQL in 5 Steps

Collapse
 
gitdan42 profile image
Okolo Daniel Kelechi

Good Afternoon sir, please how do I navigate through this problem

okolo@okolo-HP-Pavilion-dv9700-Notebook-PC:~/playlist$ sudo docker-compose up -d
Starting playlist_postgres_1 ...
Starting playlist_postgres_1 ... error

ERROR: for playlist_postgres_1 Cannot start service postgres: driver failed programming external connectivity on endpoint playlist_postgres_1

(448f91e82201fd683d2ea1c5955e62a47db27d1b9ab779730e14ec59425de0ce): Bind for 0.0.0.0:5432 failed: port is already allocated

Collapse
 
nditah profile image
Nditah

Check if docker is already running the database container
sudo docker ps

Collapse
 
gitdan42 profile image
Okolo Daniel Kelechi

Thank you sir, the problem is resolved now.