Runs latest SonarQube and Jenkins together behind Nginx reverse proxy and 2 Ngrok tunnels using Docker Compose.
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.
.env
file in the project root and set NGROK_AUTH_TOKEN=<your_ngrok_auth_token>
.ngrok.yml
file. For each of the tunnels, set the subdomain
value to your Ngrok subdomain, and the host_header
value to your Ngrok tunnel URL./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