2023-02-15 21:45:31 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
sonarqube:
|
|
|
|
image: sonarqube:8.5.1-community
|
|
|
|
container_name: sonarqube
|
|
|
|
ports:
|
|
|
|
- 9000:9000 # WEB UI
|
|
|
|
environment:
|
|
|
|
- sonar.jdbc.username=sonar
|
|
|
|
- sonar.jdbc.password=sonar
|
|
|
|
- sonar.search.javaAdditionalOpts=-Dbootstrap.system_call_filter=false
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/logs:/opt/sonarqube/logs
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/data:/opt/sonarqube/data
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/extensions:/opt/sonarqube/extensions
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:13.1
|
|
|
|
container_name: sonarqube_db
|
|
|
|
hostname: db
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=sonar
|
|
|
|
- POSTGRES_PASSWORD=sonar
|
|
|
|
volumes:
|
|
|
|
- pg_db:/var/lib/postgresql
|
|
|
|
- pg_data:/var/lib/postgresql/data
|
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
pg_db:
|
|
|
|
driver: local
|
|
|
|
pg_data:
|
|
|
|
driver: local
|