Last active
April 14, 2019 11:05
-
-
Save alikemaltasci/386161f5728dc5398523e80e87cc7dd8 to your computer and use it in GitHub Desktop.
docker-compose.yml file that is mentioned in "Simple Yet Effective Steps Towards Clean Code" article: https://medium.com/@aktasci/simple-yet-effective-steps-towards-clean-code-95f1c2700f90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.1" | |
services: | |
analyzer: | |
image: maven:3.6.0-jdk-8-alpine | |
working_dir: /usr/src/app | |
restart: on-failure | |
volumes: | |
- ./:/usr/src/app | |
- m2_repo:/root/.m2 | |
command: > | |
bash -c "mvn clean install \ | |
-Dsonar.host.url=http://sonar:9000 \ | |
-Dsonar.login=admin \ | |
-Dsonar.password=admin \ | |
sonar:sonar" | |
depends_on: | |
- sonar | |
sonar: | |
image: sonarqube | |
restart: on-failure | |
ports: | |
- "9000:9000" | |
volumes: | |
- sonar_cache:/root/.sonar/cache | |
- opt_sonarqube:/opt/sonarqube | |
volumes: | |
m2_repo: | |
sonar_cache: | |
opt_sonarqube: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment