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

Step 1

How do I run the shell inside a Docker container?

Step 2

su - postgres

2024-01-08--19-34-30

Step 3

psql

2024-01-08--19-35-03

Step 4

\c postgres

2024-01-08--19-38-30