Error message says "port is already allocated", it indicates that the port is already in use on your machine, likely by another instance of PostgreSQL or another service. When I got this message I've checked is there any Docker container using this port or not.
docker ps
Then I realized that there is one PostgreSQL container using same port. I removed the container and it worked.
docker stop <container_id>
docker rm <container_id>