Skip to content

Commit 943fa85

Browse files
committed
change sonar port to 9009
1 parent 7479bc4 commit 943fa85

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,16 @@ services:
5454
platform: linux/amd64
5555
sonarqube:
5656
image: sonarqube:community
57+
environment:
58+
- SONAR_WEB_PORT=9009
5759
volumes:
5860
- sonarqube_data:/opt/sonarqube/data
5961
- sonarqube_extensions:/opt/sonarqube/extensions
6062
- sonarqube_logs:/opt/sonarqube/logs
6163
ports:
62-
- "9000:9000"
64+
- "9009:9009"
65+
profiles:
66+
- sonarserver
6367
unittests:
6468
build: .
6569
command: python3 -m debugpy --listen 0.0.0.0:6789 --wait-for-client runtests.py
@@ -82,7 +86,7 @@ services:
8286
- coverage
8387
sonardemo:
8488
build: .
85-
command: bash -c "sonar-scanner -Dsonar.projectKey=BB2 -Dsonar.sources=. -Dsonar.python.coverage.reportPaths=coverage.xml -Dsonar.host.url=http://sonarqube:9000 -Dsonar.token=sqp_9f1dcd7f83b3b12be28008a6e0a595352a852bec"
89+
command: bash -c "sonar-scanner -Dsonar.projectKey=BB2 -Dsonar.sources=. -Dsonar.python.coverage.reportPaths=coverage.xml -Dsonar.host.url=http://sonarqube:9009 -Dsonar.token=sqp_9f1dcd7f83b3b12be28008a6e0a595352a852bec"
8690
volumes:
8791
- .:/code
8892
profiles:

0 commit comments

Comments
 (0)