Skip to content

nadirvishun/jenkins-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

jenkins-docker-compose

官网上只有docker run的两个相关命令,很是繁琐,将其整合为docker compose,见docker-compose.yml文件

说明

  • 仅仅是将jenkins官网上的两个命令进行了整合,需提前按官方文档创建相关network和相关volumes

    #创建network
    docker network create jenkins
    #创建volumes
    docker volume create --name=jenkins-docker-certs
    docker volume create --name=jenkins-data
  • 取消原有的-rm相关命令,改为restart=unless-stopped参数,使可以重启

使用

  • 安装docker-compose
  • 在下载的docker-compose.yml目录下运行docker compose up -d启动,运行docker compose down来关闭

About

jenkins的docker-compose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published