|
|
@ -84,3 +84,29 @@ services: |
|
|
|
- ${DOCKER_SOCK}:/var/run/docker.sock |
|
|
|
depends_on: |
|
|
|
- drone |
|
|
|
sonarqube: |
|
|
|
image: sonarqube:10.2-community |
|
|
|
container_name: sonarqube |
|
|
|
depends_on: |
|
|
|
- pg |
|
|
|
environment: |
|
|
|
SONAR_JDBC_URL: jdbc:postgresql://pg:5432/sonar |
|
|
|
SONAR_JDBC_USERNAME: sonar |
|
|
|
SONAR_JDBC_PASSWORD: sonar |
|
|
|
SONAR_ES_BOOTSTRAP_CHECKS_DISABLE: true |
|
|
|
volumes: |
|
|
|
- ./data/sonarqube/data:/opt/sonarqube/data |
|
|
|
- ./data/sonarqube/extensions:/opt/sonarqube/extensions |
|
|
|
- ./logs/sonarqube:/opt/sonarqube/logs |
|
|
|
ports: |
|
|
|
- 3005:9000 |
|
|
|
#command: tail -f /dev/null |
|
|
|
pg: |
|
|
|
image: postgres:12 |
|
|
|
container_name: pg |
|
|
|
environment: |
|
|
|
POSTGRES_USER: sonar |
|
|
|
POSTGRES_PASSWORD: sonar |
|
|
|
volumes: |
|
|
|
- ./data/postgresql/postgresql:/var/lib/postgresql |
|
|
|
- ./data/postgresql/data:/var/lib/postgresql/data |
|
|
|