Como conectar o postgresql fora do docker?

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