康来智慧冷链-后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
534 B

version: "3"
services:
jenkins:
build:
context: ./image
container_name: jenkins
image: jenkins
hostname: jenkins
restart: always
volumes:
- jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
# 只有操作系统为Debian可以使用,不一致自行进入容器使用 apt install docker-compose -y 中安装
# - /usr/bin/docker-compose:/usr/bin/docker-compose
ports:
- 2023:8080
volumes:
jenkins_home: