Try this:
1) Run: docker ps and find if the container with the name 'nostream-db' is running with healthy status.
2) If it is you can generally run docker exec -it nostream-db psql -U nostr_ts_relay. It should directly connect to the DB. You can also run /bin/bash instead of psql as needed.