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: