How to connect postgresql outside the docker?

I want to update some info through sql, is that possible?
Please help me!!! Thanks :sob: :sob: :sob: