Postrgres sql and docker integration

Hi, I am using postrsql and docker compose.

I have a question.

I want to connect to psql in local(cmd) window and then connect to local created user and postrsql user created in docker, but I realized that they are separated.

I want to use local user and docker user together.

It seems complicated to enter docker container one by one to check that query was executed. How can I do it?

Can you rephrase your question and provide more context? You run two separate databases?