If you want to get to the database on a standard install, the way that I do it is
./launcher enter app
su postgres
psql discourse
I’ve not seen bin/rails db, but when I ran it on one container (that uses an external database) I got a prompt asking for a password for user discourse.