services: jenkins1: image: jenkins/jenkins:lts container_name: jenkins1 ports: - "8081:8080" volumes: - jenkins_home1:/var/jenkins_home - ./init.groovy.d:/var/jenkins_home/init.groovy.d environment: - JENKINS_USER=admin - JENKINS_PASS=password networks: - jenkins_network jenkins2: image: jenkins/jenkins:lts container_name: jenkins2 ports: - "8082:8080" volumes: - jenkins_home2:/var/jenkins_home - ./init.groovy.d:/var/jenkins_home/init.groovy.d environment: - JENKINS_USER=admin - JENKINS_PASS=password networks: - jenkins_network jenkins3: image: jenkins/jenkins:lts container_name: jenkins3 ports: - "8083:8080" volumes: - jenkins_home3:/var/jenkins_home - ./init.groovy.d:/var/jenkins_home/init.groovy.d environment: - JENKINS_USER=admin - JENKINS_PASS=password networks: - jenkins_network jenkins4: image: jenkins/jenkins:lts container_name: jenkins4 ports: - "8084:8080" volumes: - jenkins_home4:/var/jenkins_home - ./init.groovy.d:/var/jenkins_home/init.groovy.d environment: - JENKINS_USER=admin - JENKINS_PASS=password networks: - jenkins_network jenkins5: image: jenkins/jenkins:lts container_name: jenkins5 ports: - "8085:8080" volumes: - jenkins_home5:/var/jenkins_home - ./init.groovy.d:/var/jenkins_home/init.groovy.d environment: - JENKINS_USER=admin - JENKINS_PASS=password networks: - jenkins_network volumes: jenkins_home1: jenkins_home2: jenkins_home3: jenkins_home4: jenkins_home5: networks: jenkins_network: