一.docker-compose中使用jenkins

docker-compose.yml

version: '3'
services:
  jenkins:
    image: 'jenkins/jenkins:lts'
    container_name: jenkins
    restart: always
    ports:
      - '8029:8080'
      - '50000:50000'
    volumes:
      # 数据卷
      - '/usr/local/docker/jenkins/jenkins_home:/var/jenkins_home'
      # maven
      - '/usr/local/App/apache-maven-3.6.3/:/usr/local/maven/'
      # maven本地仓库
      - '/usr/local/mvnRepository/:/usr/local/mvnRepository/'
      # jdk
      - '/usr/local/jdk1.8/:/usr/local/jdk/'
      # git
      - '/usr/local/git/:/usr/local/git/'

你可能感兴趣的:(一.docker-compose中使用jenkins)