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:${DOMAINS} traefik.backend: ${TRAEFIK_BACKEND} traefik.enable: true traefik.port: 8080 healthcheck: test: ["CMD", "curl", "-sS", "http://localhost:50000" ] interval: 5s timeout: 10s retries: 5 jenkins-agent-maven: 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: rancher-nfs molgenis-jenkins-agent-buildtools: driver: rancher-nfs