内容目录
- Get the PostgreSQL image
docker pull postgres
- Start PostgreSQL
docker run --name db -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d postgres
- Get the SonarQube image
docker pull sonarqube
- Start SonarQube
docker run --name sq --link db -e SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar -p 9000:9000 -d sonarqube
At this point, the platform is set up.
Docker Installation Guide for SonarQube to Resolve Errors
SonarQube should be compatible with version 8.5; higher versions may cause errors.
Article link: https://www.alibabacloud.com/blog/how-to-install-sonarqube-and-postgresql-with-docker-on-alibaba-cloud-ecs-instance_598733
文章评论