Connect to postgresql metadata info

hi all I need to connect to postgres database under redash platform.

In env file i’ve found this configuration

PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_REDIS_URL=redis://redis:6379/0
POSTGRES_PASSWORD=xxxxxxxxxxxxxxx
REDASH_COOKIE_SECRET=yyyyyyyyyyyyyyyyyyyy
REDASH_SECRET_KEY=xxxxxxxxxxxxxxx
REDASH_DATABASE_URL=postgresql://postgres:xxxxxxxxxxxxxxx@postgres/postgres

now i’m tring to connect it via psql
in accordig with documentation and credential i’ve do it:
psql -h localhost -p 5432 -U postgres -W

but after posting password i’m not able to connect to the db

can someone help me?
thanks in advance
EC

Which box are you running this command from? localhost always points the current system. If you are on box A trying to connect with box B then you need to provide the correct address for box B. localhost will point at A.