David Kimura PRO said almost 4 years ago on In Depth with Docker Compose :
  Is the postgres instance running? You can run docker container ls to see.  You can also run docker logs CONTAINER_NAME to see if there is something else weird going on.