42 lines
910 B
YAML
42 lines
910 B
YAML
|
version: "3"
|
||
|
|
||
|
services:
|
||
|
sonarqube:
|
||
|
image: sonarqube
|
||
|
expose:
|
||
|
- 9005
|
||
|
ports:
|
||
|
- "9005:9000"
|
||
|
networks:
|
||
|
- sonarnet
|
||
|
environment:
|
||
|
- SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar
|
||
|
- SONARQUBE_JDBC_USERNAME=sonar
|
||
|
- SONARQUBE_JDBC_PASSWORD=sonar
|
||
|
volumes:
|
||
|
- sonarqube_conf:/opt/sonarqube/conf
|
||
|
- sonarqube_data:/opt/sonarqube/data
|
||
|
- sonarqube_extensions:/opt/sonarqube/extensions
|
||
|
- sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
|
||
|
|
||
|
db:
|
||
|
image: postgres
|
||
|
networks:
|
||
|
- sonarnet
|
||
|
environment:
|
||
|
- POSTGRES_USER=sonar
|
||
|
- POSTGRES_PASSWORD=sonar
|
||
|
volumes:
|
||
|
- postgresql:/var/lib/postgresql
|
||
|
- postgresql_data:/var/lib/postgresql/data
|
||
|
|
||
|
networks:
|
||
|
sonarnet:
|
||
|
|
||
|
volumes:
|
||
|
sonarqube_conf:
|
||
|
sonarqube_data:
|
||
|
sonarqube_extensions:
|
||
|
sonarqube_bundled-plugins:
|
||
|
postgresql:
|
||
|
postgresql_data:
|