
Deploy sonarqube on Your Own Server
Catch bugs and vulnerabilities in your app, with thousands of automated Static Code Analysis rules
Want to deploy sonarqube on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is sonarqube?
SonarQube is an open source product for continuous inspection of code quality. This Docker image contains the Community Edition of SonarQube. Enter your SonarQube Configuration parameters and click on next. More information about this container can be found here: https://hub.docker.com/_/sonarqube?tab=description Default username: admin Default password: admin It will take about a minute for the process to finish.
Self-Host sonarqube
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
sonarqube:
image: sonarqube:10.2.1-community
environment:
SONAR_JDBC_PASSWORD: ""
SONAR_JDBC_URL: jdbc:postgresql://sonarqube-db:5432/sonarqube
SONAR_JDBC_USERNAME: sonarqube
volumes:
- sonarqube-conf:/opt/sonarqube/conf
- sonarqube-data:/opt/sonarqube/data
- sonarqube-logs:/opt/sonarqube/logs
- sonarqube-extensions:/opt/sonarqube/extensions
depends_on:
- sonarqube-db
sonarqube-db:
image: postgres:9.6
environment:
POSTGRES_DB: sonarqube
POSTGRES_INITDB_ARGS: ""
POSTGRES_PASSWORD: ""
POSTGRES_USER: sonarqube
volumes:
- sonarqube-db-data:/var/lib/postgresql/data
volumes:
sonarqube-conf: {}
sonarqube-data: {}
sonarqube-logs: {}
sonarqube-extensions: {}
sonarqube-db-data: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:9000
Why Self-Host sonarqube?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
sonarqube:${sonar_version}Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"