Problems reusing old database during upgrade

Hi, I am not able to get proper documentation of how to point the sonarqube server to exisiting database. Can you please help achieving this. We are upgrading 8.9 using SonarQube Community docker image of 9.9.3

We are building the image using below command
–build-arg SONAR_SERVER_URL=$(SONARJDBCURL) --build-arg SONAR_USER=$(SONARUSERNAME) --build-arg SONAR_PASSWORD=$(SONARPASSWORD)

ENV SONARQUBE_JDBC_URL=${SONAR_SERVER_URL}

ENV SONARQUBE_JDBC_USERNAME=${SONAR_USER}

ENV SONARQUBE_JDBC_PASSWORD=${SONAR_PASSWORD}

These deprecated (now removed) variables no longer work. See the upgrade notes:

  • The deprecated SONARQUBE_JDBC_USERNAME, SONARQUBE_JDBC_PASSWORD, and SONARQUBE_JDBC_URL variables have been removed. See Environment variables for up-to-date configuration variables.