Skip to content

Repository files navigation

Breve progetto SonarQube Community (compose)

Scopo

  • Avviare SonarQube Community + PostgreSQL in /home/DATA/sonarqube
  • Esporre SonarQube su http://localhost:9000 (mappato dal compose)
  • Suggerimenti per esporre tramite easy-proxy su quality.ethiclab.it

File creati

  • docker-compose.yml (sonarqube + postgres)
  • .env.example

Avvio rapido

  1. Copiare .env.example → .env e (opz.) modificare password cp .env.example .env
  2. (Linux) aumentare vm.max_map_count richiesto da SonarQube/ES: sudo sysctl -w vm.max_map_count=262144
  3. Avviare: docker compose up -d
  4. Verificare: curl -fsS http://localhost:9000/api/system/health

Risorse e limiti

  • SonarQube richiede minimo ~2GB RAM per funzionare correttamente.
  • Postgres è in container separato; dati persistono in volumi docker.

Esporre con easy-proxy (approccio semplice, senza modificare la rete Docker)

  1. Assicurarsi che il compose mappi 9000:9000 -> SonarQube
  2. Creare vhost HTTP per test (no cert): easy proxy new http quality.ethiclab.it ethiclab.it http://host.docker.internal:9000 easy proxy reload
  3. Per HTTPS con IONOS (se configurato): easy proxy certbot-ionos ethiclab.it easy proxy new https quality.ethiclab.it ethiclab.it http://host.docker.internal:9000 easy proxy reload

Note

  • host.docker.internal può non esistere su Linux puro; se manca, esporre il servizio sulla macchina host o collegare i container a una rete condivisa e usare l'URL http://sonarqube:9000 dal proxy (vedi easy-proxy NETWORK docs).
  • Questo progetto è un "progettino" di avvio. Se vuoi, aggiungo una versione che integra il servizio direttamente nella rete EASY_PROXY_NETWORK così easy-proxy può instradare direttamente al container sonarqube senza host.docker.internal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages