Skip to content

Instantly share code, notes, and snippets.

@HamGuy
Created July 17, 2019 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HamGuy/3a752816e9b02e588bbed53714cd9293 to your computer and use it in GitHub Desktop.
Save HamGuy/3a752816e9b02e588bbed53714cd9293 to your computer and use it in GitHub Desktop.
docker compose configure for sonaqube
version: '3'
services:
#SonarQube Container
sonarqube:
image: sonarqube:6.7-community
container_name: sonarqube
ports:
- "9000:9000"
links:
- postgres
environment:
- SONARQUBE_JDBC_URL:jdbc:postgresql://postgres:5432/sonar
volumes:
- ./plugins/backelite-sonar-objective-c-plugin-0.6.2.jar:/opt/sonarqube/extensions/plugins/backelite-sonar-objective-c-plugin-0.6.2.jar
- ./conf/sonar.properties:/opt/sonarqube/conf/sonar.properties
#PostgreSQL Container
postgres:
image: postgres
volumes:
- ~/log/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
adminer:
image: adminer
restart: always
ports:
- 8088:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment