从零开始Ubuntu24.04上Docker构建自动化部署(五)Docker安装jenkins

时间:2024-09-29 18:30:04

  jenkins:

    image: jenkins/jenkins:lts

    container_name: compose_jenkins

    user: root

    restart: always

    ports:

      - 28080:8080

    volumes:

      - /home/jenkins_home/:/var/jenkins_home

      - /usr/local/bin/docker-compose:/usr/local/bin/docker-compose

    networks:

      - dockernet