1
0
Fork 0
molgenis-ops-rancher/templates/jenkins/0/docker-compose.yml

42 lines
1.0 KiB
YAML

version: '2.1'
services:
jenkins-master:
image: jenkinsci/blueocean:latest
ports:
- 8080
- 50000
volumes:
- molgenis-jenkins:/var/jenkins_home
restart: always
labels:
io.rancher.container.pull_image: always
traefik.frontend.rule: Host:test
traefik.backend: test
traefik.enable: true
traefik.port: 8080
healthcheck:
test: ["CMD", "curl", "-sS", "http://localhost:50000" ]
interval: 5s
timeout: 10s
retries: 5
jenkins-agent-buildtools:
image: registry.molgenis.org/docker-molgenis-ops-releases/jenkins-agent-buildtools:lts
environment:
- JENKINS_URL=http://localhost:8080
- JENKINS_SECRET=paradoxa
- JENKINS_AGENT_NAME=buildtools
volumes:
- molgenis-jenkins-agent-buildtools:/var/jenkins_home
depends_on:
jenkins-master:
condition: service_healthy
restart: always
volumes:
molgenis-jenkins:
driver: local
molgenis-jenkins-agent-buildtools:
driver: local