Skip to content

Instantly share code, notes, and snippets.

@alikemaltasci
Last active April 14, 2019 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alikemaltasci/386161f5728dc5398523e80e87cc7dd8 to your computer and use it in GitHub Desktop.
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
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