项目作者: daniel-meppiel-sonarsource

项目描述 :
Runs latest SonarQube and Jenkins together behind Nginx reverse proxy and 2 Ngrok tunnels using Docker Compose.
高级语言:
项目地址: git://github.com/daniel-meppiel-sonarsource/sonarqube-latest-dockerized.git
创建时间: 2020-12-15T12:32:55Z
项目社区:https://github.com/daniel-meppiel-sonarsource/sonarqube-latest-dockerized

开源协议:MIT License

下载


sonarqube-latest-dockerized

This project allows you to run the latest version of SonarQube with a PostgreSQL database, accompanied by a Jenkins server.
Both SonarQube and Jenkins are behind a Nginx reverse proxy and can be accessed via 2 different Ngrok tunnels.

Prerequisites

You will need Docker and Docker Compose installed and running in your machine.
You will also need a Ngrok account and 2 endpoints configured.

Configuration

  1. Make sure you have 2 Ngrok endpoints ready for use, one for SonarQube and one for Jenkins.
  2. Create a .env file in the project root and set NGROK_AUTH_TOKEN=<your_ngrok_auth_token>.
  3. Modify the ngrok.yml file. For each of the tunnels, set the subdomain value to your Ngrok subdomain, and the host_headervalue to your Ngrok tunnel URL.
  4. Modify the /reverse_proxy/nginx/nginx.conf file: for each of the two server blocks, set the server_name to your Jenkins and SonarQube Ngrok endpoints respectively.

Run it with Docker Compose

To run the services, use the following command:

docker-compose up