1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
version: '2' services: jenkins: container_name: jenkins image: 'jenkins/jenkins:lts' ports: - '80:8080' - '443:8443' - '50000:50000' volumes: - 'jenkins_data:/jenkins_config' - './jenkins_home:/var/jenkins_home' volumes: jenkins_data: driver: local
You can clone a snippet to your computer for local editing. Learn more.