Skip to content

docker-compose.yml to run sonarqube server as a docker image

Notifications You must be signed in to change notification settings

mechdeveloper/sonarqube-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Downloading and running sonarqube in Docker

How to use

  • clone this repository in your local machine where docker is running

    git clone https://github.com/mechdeveloper/sonarqube-docker.git
    cd sonarqube-docker
  • To spin up services defined in docker-compose.yml file

    docker-compose up
  • Log in to http://localhost:9000 with System Administrator credentials (login=admin, password=admin). Once your server is installed and running, you may also want to Install Plugins. Then you're ready to begin Analyzing Source Code .

    NOTE: With this configuration SonarQube uses Embedded database and it should be used for evaluation purposes only. The embedded database will not scale, it will not support upgrading to newer versions of SonarQube, and there is no support for migrating your data out of it into a different database engine.

  • To stop the services

    docker-compose down

Components defined in docker-compose.yml

  1. networks

    • create bridge network in docker named sonarqube
  2. volumes

    volumes helps prevent the loss of information when updating to a new version or upgrading to a higher edition

    • sonarqube_data
      • contains data files, such as the embedded H2 database and Elasticsearch indexes
    • sonarqube_logs
      • contains SonarQube logs about access, web process, CE process, and Elasticsearch
    • sonarqube_extensions
      • contains plugins, such as language analyzers
  3. services

    • sonarqube
      • runs sonarqube:lts-community docker image as a contianer in Docker

Reference

About

docker-compose.yml to run sonarqube server as a docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors