How to switch to postgres v12 db from embedded db in docker-compose setup

Must-share information (formatted with Markdown):

  • SonarQube : version 9.9 community
  • use postgres db version 12
  • MAC OS (Monterey) with M1 chip
  • tried running docker-compose up -d. Then going to localhost:9000. At the bottom of the homepage, observe that a notice about the embedded database being used is displayed. How should I switch this setup to use postgresql ? I also notice that the postgresql database is up and running because the directories postgresql and postgresql_data are created in the directory of docker-compose descriptor file.

What should I do to fix this ?

P.S : I’m a total newbie to SonarQube installation

Hey there.

Have you seen this example?