snippets/docker/ci => docker + jenkins + sonar

31 lines
611 B
Plaintext
Raw Permalink Normal View History

2024-10-02 23:47:38 +00:00
version: '2'
services:
jenkins:
image: jenkins/jenkins
container_name: jenkins
hostname: jenkins
restart: always
volumes:
- ./jenkins:/var/jenkins_home
expose:
- 8080
networks:
- icnet
sonarqube:
image: sonarqube
container_name: sonarqube
hostname: sonarqube
restart: always
expose:
- 9000
volumes:
- ./sonar/conf:/opt/sonarqube/conf
- ./sonar/data:/opt/sonarqube/data
- ./sonar/logs:/opt/sonarqube/logs
- ./sonar/extensions:/opt/sonarqube/extensions
networks:
- icnet
networks:
icnet: