Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to Migrate Sonarqube from H2 to Postgresql?

Step 1 – Run Postgresql using docker command


$ docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres

Step 2 – Modify sonar.properties


sonar.jdbc.username=postgres
sonar.jdbc.password=mysecretpassword
sonar.jdbc.url=jdbc:postgresql://172.31.13.0:5432/postgres?currentSchema=public

Step 3 – Do this

Step 4 – Do this

Step 5 – Start SonarQube

Step 6 – Access http://52.66.187.172:9000/

admin
admin

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x