/docker-compose-sonarqube-postgres

Run SonarQube with a PostgreSQL database using Docker Compose

Apache License 2.0Apache-2.0

docker-compose-sonarqube-postgres

Run SonarQube with a PostgreSQL database using Docker Compose

Docker images and tags used

Usage

Use docker-compose to start the containers.

$ docker-compose up

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

$ docker-compose restart sonarqube

Analyse a project:

mvn sonar:sonar \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.jdbc.url=jdbc:postgresql://$(boot2docker ip)/sonar