I found a way to query Discourse database information
- Enter the container
./launcher enter app
- Switch to the postgres user in the container and start psql
sudo -u postgres psql discourse
Now the terminal becomes
discourse=#
- See what tables there are
\dt
- Exit psql
\q