Open-source SonarQube alternative: self-hosted code quality with no lines-of-code licence
8.0K
Short description: Self-hosted code quality, AI review and dependency vulnerability tracking. SonarQube alternative.
Categories: Developer tools, Integration & delivery, Security
Code quality, AI code review and dependency vulnerability tracking in one self-hosted server.
Qualor is an open-source, self-hosted SonarQube alternative for GitLab, GitHub and Azure DevOps. It runs the analyzers you already trust, follows every issue across commits, and fails the merge request that makes the code worse. An AI reviewer comments on the same merge requests, on a model you choose. The server keeps checking the dependencies of your branches and releases for new vulnerabilities. MIT licensed, with no limit on lines, users or projects.
qualor import sonarqube brings over quality profiles,
quality gates and accepted issues.Website: https://qualor.dev · Documentation: https://qualor.dev/docs · Source and issues: https://github.com/qualor-dev/qualor
Every release has its full version tag, such as 0.17.0, and a minor tag, such as 0.17, that
follows its patch releases. There is no latest tag: pin a version and upgrade when you choose to.
export QUALOR_SECRET_KEY=$(openssl rand -hex 32)
export QUALOR_BOOTSTRAP_ADMIN_PASSWORD=$(openssl rand -hex 16)
docker run -d --name qualor -p 127.0.0.1:8080:8080 -v qualor-data:/var/lib/qualor \
-e QUALOR_SECRET_KEY -e QUALOR_BOOTSTRAP_ADMIN_PASSWORD qualor/server:0.17
echo "$QUALOR_BOOTSTRAP_ADMIN_PASSWORD" # the admin password for the first sign-in
Open http://127.0.0.1:8080 and sign in as admin. The
quick start goes on from there to a first analysis of your
own code with qualor/scanner.
For a server you keep, follow the install guide, https://qualor.dev/docs/install-server: a
compose.yml with one server service and the data and vulndb-cache volumes, an .env with
generated secrets, TLS behind a reverse proxy, an external PostgreSQL if you prefer one, backups
and upgrades. On Kubernetes, use the Helm chart
qualor/qualor.
Single sign-on, SCIM provisioning, a tamper-evident audit log, SIEM streaming, vulnerability alerts, SBOM and VEX export and priority support come with a licence key for this same image. Priced per server, never by lines of code or by seat: https://qualor.dev/enterprise.
This image is the server: the HTTP API, the web UI and the analysis worker in one Node.js
process, plus its own PostgreSQL 18, which it starts itself and keeps on the volume
/var/lib/qualor. Set DATABASE_URL to use an external PostgreSQL 16 or later instead.
gcr.io/distroless/cc-debian12, no shell, no package manager) with Node.js
22.23.4, PostgreSQL 18 and Trivy, about 640 MB; every base image is pinned by digest./app is writable by it; its data is on the
volume /var/lib/qualor (QUALOR_DATA_DIR).HOST=0.0.0.0, PORT=8080) and serves the web UI from /app/ui on the
same origin (QUALOR_UI_DIR=/app/ui).node --enable-source-maps dist/main.js. It applies the database migrations at every
start, before it listens, under a PostgreSQL advisory lock, so replicas starting together apply
them once.GET /healthz (liveness, the image's HEALTHCHECK) and GET /readyz (503 until the database
answers within 2 s and the migrations are applied)./var/cache/qualor/vulndb (QUALOR_VULNDB_DIR): give it
4 GiB.| Variable | Default | Meaning |
|---|---|---|
DATABASE_URL | empty | postgres:// URL of an external database; empty runs the embedded PostgreSQL 18 |
QUALOR_SECRET_KEY | required | at least 32 characters; keys the session CSRF tokens and encrypts stored webhook secrets |
QUALOR_BOOTSTRAP_ADMIN_USERNAME, QUALOR_BOOTSTRAP_ADMIN_PASSWORD | admin, none | the first instance admin, created on the first start only; the password (at least 12 characters) is required then |
HOST, PORT | 0.0.0.0, 8080 | listen address |
QUALOR_TRUST_PROXY | off | the reverse proxies in front of the server: a hop count or a comma-separated list of IPs and CIDRs |
QUALOR_LOG_LEVEL | info | log level |
QUALOR_SESSION_TTL_HOURS | 168 | browser session lifetime |
QUALOR_DEMO_USER | none | a user anyone may sign in as, read-only and without a password, with Explore the demo on the sign-in page |
QUALOR_UPLOAD_MAX_COMPRESSED_BYTES | 50 MiB | report upload limit as sent |
QUALOR_UPLOAD_MAX_DECOMPRESSED_BYTES | 500 MiB | report upload limit decompressed (also the maximum) |
QUALOR_REVIEW_SNAPSHOT_MAX_COMPRESSED_BYTES | 50 MiB | AI review snapshot upload limit as sent |
QUALOR_REVIEW_SNAPSHOT_MAX_DECOMPRESSED_BYTES | 500 MiB | AI review snapshot limit decompressed (also the maximum) |
QUALOR_MAX_CONCURRENT_UPLOADS | 4 | uploads read at once |
QUALOR_REQUEST_TIMEOUT_MS | 300000 | the longest any one request may run |
QUALOR_WORKER_CONCURRENCY | 1 | analysis jobs processed at once |
QUALOR_REVIEW_WORKER_CONCURRENCY | 2 | AI reviews and answers to replies run at once, 1 to 8 |
QUALOR_AI_REVIEW_MAX_MINUTES | 45 | an AI review's time in all, 5 to 240 minutes |
Give the server at least 1 GiB of memory; reports near the 500 MiB ceiling need about 4 GiB.
QUALOR_SECRET_KEY or QUALOR_BOOTSTRAP_ADMIN_PASSWORD is empty. Use generated hex values.127.0.0.1:8080 only, with a read-only root
filesystem, no capabilities and no-new-privileges; the embedded PostgreSQL listens on a Unix
socket only.QUALOR_TRUST_PROXY; never expose the server on 0.0.0.0 without TLS.QUALOR_SECRET_KEY separately:
changing it signs everyone out and makes stored webhook secrets unreadable.Qualor is MIT-licensed (/app/LICENSE), except the enterprise plugin in /app/enterprise
(Qualor Enterprise Licence, /app/enterprise/LICENSE), which the server loads only with a valid
licence key and never reads without one. Third-party notices are in /app/NOTICE.md. The source
of the image's copyleft components (its Debian packages) is published as
qualor/server-sources with the same tag;
/app/SOURCES.md is its index.
SonarQube and SonarCloud are trademarks of SonarSource SA. Qualor is an independent project and is not affiliated with, sponsored or endorsed by SonarSource. Their names are used only to describe compatibility and to compare features.
docker pull qualor/server:0.18