21 lines
580 B
YAML
21 lines
580 B
YAML
jenkins-primary:
|
|
image: "jenkins:2.32.2"
|
|
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"]
|