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.
You will need Docker and Docker Compose installed and running in your machine. You will also need a Ngrok account and 2 endpoints configured.
- Make sure you have 2 Ngrok endpoints ready for use, one for SonarQube and one for Jenkins.
- Create a
.env
file in the project root and setNGROK_AUTH_TOKEN=<your_ngrok_auth_token>
. - Modify the
ngrok.yml
file. For each of the tunnels, set thesubdomain
value to your Ngrok subdomain, and thehost_header
value to your Ngrok tunnel URL. - 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.
To run the services, use the following command:
docker-compose up