Skip to content

Instantly share code, notes, and snippets.

@sundbp
Created August 9, 2017 15:35
Show Gist options
  • Select an option

  • Save sundbp/9609864c9e0b306a5c6b9e07e9ecdaa7 to your computer and use it in GitHub Desktop.

Select an option

Save sundbp/9609864c9e0b306a5c6b9e07e9ecdaa7 to your computer and use it in GitHub Desktop.
version: '3'
services:
master:
image: sundbp/jenkins:2.73
ports:
- 8080:8080
- 50000:50000
volumes:
- jenkins_home_vol:/var/jenkins_home
networks:
- services
deploy:
placement:
constraints: [node.hostname == scw-par1-swarm1]
slave:
image: sundbp/jenkins-swarm-slave:3.4
entrypoint: /bin/bash
command: -c "sleep 100000" #-master http://192.168.24.1:8080/ -executors 6 -labels "docker" -disableSslVerification
networks:
- services
deploy:
mode: global
volumes:
jenkins_home_vol:
external:
name: jenkins_home_vol
networks:
services:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment