https://github.com/mechdeveloper/sonarqube-docker
docker-compose.yml to run sonarqube server as a docker image
https://github.com/mechdeveloper/sonarqube-docker
Last synced: about 1 month ago
JSON representation
docker-compose.yml to run sonarqube server as a docker image
- Host: GitHub
- URL: https://github.com/mechdeveloper/sonarqube-docker
- Owner: mechdeveloper
- Created: 2020-05-09T21:27:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-15T17:32:13.000Z (about 4 years ago)
- Last Synced: 2025-03-23T07:30:33.536Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Downloading and running sonarqube in Docker
## How to use
- clone this repository in your local machine where docker is running
```bash
git clone https://github.com/mechdeveloper/sonarqube-docker.git
cd sonarqube-docker
```
- To spin up services defined in docker-compose.yml file
```bash
docker-compose up
```
- Log in to with System Administrator credentials (login=admin, password=admin).
Once your server is installed and running, you may also want to [Install Plugins](https://docs.sonarqube.org/latest/setup/install-plugin/). Then you're ready to begin [Analyzing Source Code](https://docs.sonarqube.org/latest/analysis/overview/) .
> 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
```bash
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
-