forked from angular-schule/ngx-deploy-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (23 loc) · 767 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (23 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: '3'
services:
sonar_server:
image: sonarqube
ports:
- '9000:9000'
sonar_cli:
image: sonarsource/sonar-scanner-cli
profiles: ['cli']
volumes:
- ./:/github/workspace
env_file:
- tools/docker/sonarqube/env_vars
command: /bin/bash -c 'sonar-scanner -Dsonar.host.url=$$SONAR_HOST_URL -Dsonar.login=admin -Dsonar.password=$$SONAR_PASSWORD'
# To be able to provide absolute paths on configuration files
working_dir: /github/workspace
change_sonar_server_password:
image: curlimages/curl
volumes:
- ./tools/docker/sonarqube/change_password.sh:/home/curl_user/change_password.sh
env_file:
- tools/docker/sonarqube/env_vars
command: ash -c "/home/curl_user/change_password.sh"