2022-12-09 23:21:30 +01:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
SonarQube:
|
|
|
|
image: SonarQube:community
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
|
|
|
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
|
|
|
|
SONAR_JDBC_USERNAME: sonartest
|
|
|
|
SONAR_JDBC_PASSWORD: sonartest
|
|
|
|
volumes:
|
|
|
|
- SonarQube_data:/opt/SonarQube/data
|
|
|
|
- SonarQube_extensions:/opt/SonarQube/extensions
|
|
|
|
- SonarQube_logs:/opt/SonarQube/logs
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
db:
|
|
|
|
image: postgres:12
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: sonartest
|
|
|
|
POSTGRES_PASSWORD: sonartesrt
|
|
|
|
volumes:
|
|
|
|
- postgresql:/var/lib/postgresql
|
|
|
|
- postgresql_data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
|
|
SonarQube_data:
|
|
|
|
SonarQube_extensions:
|
|
|
|
SonarQube_logs:
|
|
|
|
postgresql:
|
|
|
|
postgresql_data:
|