Jenkins Docker Compose
jenkins:
image: jenkins/jenkins:lst
user: root
restart: always
container_name: jenkins
environment:
- TZ=Asia/Shanghai
volumes:
- /data/NFS:/data/NFS
- /etc/hosts:/etc/hosts
- /root/.ssh:/root/.ssh
- /etc/localtime:/etc/localtime
- /data/jenkins/nodejs:/usr/local/nodejs
- /data/jenkins/maven-cache:/root/.m2
- /data/jenkins/maven:/usr/local/maven
- /data/jenkins/grails:/usr/local/grails
- /data/jenkins/gradle-cache:/root/.gradle
- /data/jenkins/gradle:/usr/local/gradle
- /data/jenkins/data:/var/jenkins_home
- /data/jenkins/proj_conf:/usr/local/proj_conf
ports:
- "8080:8080"
- "5000:5000"
版权声明:
作者:Akiraka
链接:https://www.akiraka.net/linux/docker/752.html
来源:Akiraka
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
海报
Jenkins Docker Compose
jenkins:
image: jenkins/jenkins:lst
user: root
restart: always
container_name: jenkins
environment:
- TZ=Asia/Shanghai
……
文章目录
关闭