Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 677 Bytes

File metadata and controls

34 lines (27 loc) · 677 Bytes

Run SonarQube with a PostgreSQL database

Compose file

Execute this docker-compose.yml configuration file to start SonarQube and a PostgreSQL database.

docker compose up

Restart the containers (after plugin upgrade or install for example).

docker compose restart sonarqube

Analyse a project with Maven:

mvn sonar:sonar \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.login=<sonar-analysis-token>

Command to stop and remove compose environment:

docker compose down --rmi local -v --remove-orphans

To be improved

  • Backup
  • Clustering
  • Upgrade
  • Admin password
  • Plugins
  • ...