Sonarqube Web server startup failed after Docker restart

After restarting my SonarQube instance using docker-compose down and docker-compose up -d I got the following error.

ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed: Database was upgraded to a more recent version of SonarQube. A backup must probably be restored or the DB settings are incorrect. 

SonarQube was previously running fine. I was able to get this error resolved by upgrading from 8.7-developer to 8.8-developer, but I am wondering if this is expected behavior.

Also, this may or may not be relevant but our instance of SonarQube is running behind an ssh tunnel (which is why the port in the docker compose is written as 127.0.0.1:9000:9000.

docker-compose.yml below:

version: "3"
services:
  sonarqube:
    image: 'nexus.stamp.tsa.dhs.gov:9091/sonarqube:8.7-developer'
    ports:
      - '127.0.0.1:9000:9000'
    environment:
      - SONARQUBE_JDBC_USERNAME=username
      - SONARQUBE_JDBC_PASSWORD=password
      - SONARQUBE_JDBC_URL=jdbc:sqlserver://hostname;databaseName=sonar
      - sonar.updatecenter.activate=false
    volumes:
      - '/docker_data/sonarqube/conf:/opt/sonarqube/conf'
      - '/docker_data/sonarqube/data:/opt/sonarqube/data'
      - '/docker_data/sonarqube/logs:/opt/sonarqube/logs'
      - '/docker_data/sonarqube/extensions:/opt/sonarqube/extensions'
    depends_on:
      - sonarqube_mssql
  sonarqube_mssql:
    image: 'hostname:9091/mssql2017:2017_release'
    ports:
      - '1433:1433'
    environment:
      - ACCEPT_EULA=Y
      - MSSQL_PID=Express
      - MSSQL_SA_PASSWORD=password
    volumes:
      - '/docker_data/mssql:/var/opt/mssql'

Hi @dkapoor ,

no this is definitely not expected behavior. The message is usually thrown when there is an unexpected database migration number found in the database. are there multiple instances connected to the same database or was there a switch?
Database migrations are only executed upon user request and are not started automatically