Skip to content

Instantly share code, notes, and snippets.

@rwaddin
Created July 17, 2023 07:55
Show Gist options
  • Save rwaddin/caca4d995a07b730e5a07a878724f0e5 to your computer and use it in GitHub Desktop.
Save rwaddin/caca4d995a07b730e5a07a878724f0e5 to your computer and use it in GitHub Desktop.
sonarqube-docker
version: "3"
services:
sonarqube:
image: sonarqube:lts-community
container_name: sonarqube
depends_on:
- db
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
volumes:
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
ports:
- "9000:9000"
db:
image: postgres
container_name: db
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
volumes:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs:
postgresql:
postgresql_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment