services: jenkins: image: 'jenkins/jenkins:latest' environment: - SERVICE_FQDN_JENKINS_8080 - 'CASC_JENKINS_CONFIG=/jenkins/casc/jenkins.yml' volumes: - 'jenkins-home:/var/jenkins_home' # - type: bind # source: '/shared/jenkins/home' # target: '/var/jenkins_home' # is_directory: true - '/usr/local/bin/bw:/usr/local/bin/bw' - '/var/run/docker.sock:/var/run/docker.sock' - type: bind source: '/shared/jenkins/jenkins.yml' target: '/jenkins/jcasc/jenkins.yml' healthcheck: test: - CMD - curl - '-f' - 'http://localhost:8080/login' interval: 30s timeout: 10s retries: 3 start_period: 40s