Copied from rancher community catalog as starting point
This commit is contained in:
20
templates/Jenkins-CI/0/docker-compose.yml
Normal file
20
templates/Jenkins-CI/0/docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
jenkins-primary:
|
||||
image: "jenkins/jenkins:2.92"
|
||||
ports:
|
||||
- "${PORT}:8080"
|
||||
labels:
|
||||
io.rancher.sidekicks: jenkins-plugins,jenkins-datavolume
|
||||
io.rancher.container.hostname_override: container_name
|
||||
volumes_from:
|
||||
- jenkins-plugins
|
||||
- jenkins-datavolume
|
||||
entrypoint: /usr/share/jenkins/rancher/jenkins.sh
|
||||
jenkins-plugins:
|
||||
image: rancher/jenkins-plugins:v0.1.1
|
||||
jenkins-datavolume:
|
||||
image: "busybox"
|
||||
volumes:
|
||||
- ${volume_work}:/var/jenkins_home
|
||||
labels:
|
||||
io.rancher.container.start_once: true
|
||||
entrypoint: ["chown", "-R", "1000:1000", "/var/jenkins_home"]
|
||||
Reference in New Issue
Block a user