[Sentry] How to fix the «REDIS_PORT_6379_TCP_ADDR (or SENTRY_REDIS_HOST) is undefined» issue?

I have got this issue on the command

docker run --rm -it sentry-onpremise upgrade