How do I connect to the Sentry's database in Docker via `docker-compose exec`?

Step 1

cd /usr/local/sentry

Step 2

docker-compose exec postgres bash

2024-01-09--11-38-09

Step 3

psql -U postgres

2024-01-09--11-38-49

Step 4

\c postgres

2024-01-09--11-39-34