Last active
July 24, 2024 18:27
-
-
Save teebow1e/9cc6655d4dc72e979c69b7c60ade3dc6 to your computer and use it in GitHub Desktop.
[Project I - SoICT] Docker Compose file for jenkins + sonarqube
This file contains hidden or 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.6' | |
| services: | |
| jenkins: | |
| restart: on-failure | |
| container_name: jenkins | |
| image: jenkins/jenkins:latest | |
| volumes: | |
| - ./jenkins/data:/var/jenkins_home | |
| - ./jenkins/docker-certs:/certs/client | |
| ports: | |
| - 8080:8080 | |
| networks: | |
| - teebow1e | |
| sonarqube: | |
| restart: always | |
| hostname: sonar | |
| image: sonarqube:9.9-community | |
| container_name: sonar | |
| volumes: | |
| - ./sonar/conf:/opt/sonarqube/conf | |
| - ./sonar/extensions:/opt/sonarqube/extensions | |
| - ./sonar/logs:/opt/sonarqube/logs | |
| - ./sonar/data:/opt/sonarqube/data | |
| ports: | |
| - 9000:9000 | |
| networks: | |
| - teebow1e | |
| networks: | |
| teebow1e: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment