Connection refused

Hi,

  I have installed Comm-care HQ locally on Ubuntu 14.04.
  when i run   ./scripts/docker runserver 
                 it gives me following error

web_1 | conn = _connect(dsn,
connection_factory=connection_factory, async=async)
web_1 | django.db.utils.OperationalError: could not connect to
server: Connection refused
web_1 | Is the server running on host "localhost" (::1) and
accepting
web_1 | TCP/IP connections on port 5432?
web_1 | could not connect to server: Connection refused
web_1 | Is the server running on host "localhost" (127.0.0.1)
and accepting
web_1 | TCP/IP connections on port 5432?
web_1 |

Thanks for help

Sheeraz