How to install Sentry to Debian via Docker in 2024?

Our recommendation is to download the latest release of the self-hosted repository, and then run ./install.sh inside this directory.
This script will take care of all the things you need to get started, including a base-line configuration, and then will tell you to run docker compose up -d to start Sentry.
Sentry binds to port 9000 by default

develop.sentry.dev/self-hosted/#getting-started
github.com/getsentry/self-hosted/blob/23.12.1/install.sh(self-hosted/install.sh at 23.12.1 · getsentry/self-hosted · GitHub)