Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created January 10, 2019 23:56
Show Gist options
  • Save rms1000watt/ca8806adac748cb972a26c46a8415c96 to your computer and use it in GitHub Desktop.
Save rms1000watt/ca8806adac748cb972a26c46a8415c96 to your computer and use it in GitHub Desktop.
Jenkins Master & Slave Docker-compose (forgot where I found this originally, but NOT original content)
version: "2"
services:
master:
image: eeacms/jenkins-master
ports:
- "80:8080"
environment:
- JAVA_OPTS=-Xmx2048m
volumes:
- jenkins-master:/var/jenkins_home
worker:
image: eeacms/jenkins-slave
environment:
JAVA_OPTS: "-Xmx2048m"
JENKINS_MASTER: "http://master:8080"
JENKINS_NAME: "worker"
JENKINS_USER: "admin"
JENKINS_PASS: "admin"
JENKINS_RETRY: "10"
volumes:
- jenkins-worker:/var/jenkins_home/worker
volumes:
jenkins-master:
jenkins-worker:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment