we tried installing redash as localhost using docker.

Not able to connect localhost postgres. it will be helpfull if you can share steps to integrate.

While it runs locally it runs in its own network (unless you change the default Docker settings), so to connect to a Postgres DB running on your local machine, you will need to use its address as assigned in the Docker network. Also you need to make sure your Postgres DB listens on this address.