Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created January 20, 2017 06:54
Show Gist options
  • Save sbeliakou/e9d02bfd513e1036386943bf83a74dce to your computer and use it in GitHub Desktop.
Save sbeliakou/e9d02bfd513e1036386943bf83a74dce to your computer and use it in GitHub Desktop.
# installation: pip install docker-compose
# filename: docker-compose.yml
# run: cd ./; docker-compose up -d
# stop: cd ./; docker-compose stop
version: '2'
services:
jenkins:
restart: always
image: "jenkins:{{ ansible_env.JenkinsVersion | default(jenkins_version)}}"
ports:
- "80:8080"
- "127.0.0.1:50000:50000"
extra_hosts:
- "host:{{ ansible_eth0.ipv4.address }}"
volumes:
- {{ jenkins_home }}:/var/jenkins_home
- /home/jenkins/.ssh:/var/jenkins_home/.ssh
environment:
- JAVA_OPTS=
-Djenkins.install.runSetupWizard=false
-Djava.awt.headless=true
-Dhudson.plugins.git.GitSCM.verbose=true
-XX:NewSize=256m
-XX:MaxNewSize=256m
-XX:PermSize=256m
-XX:+DisableExplicitGC
-XX:MaxPermSize=512m
-Xms512m
-Xmx3000m
-Dsvnkit.http.sslProtocols=\"TLSv1\"
-Dorg.apache.commons.jelly.tags.fmt.timeZone=Europe/London
-Duser.timezone=Europe/London
-Dhttps.protocols=TLSv1
-Dorg.eclipse.jetty.server.Request.maxFormContentSize=5000000
-Dhudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.compatibility_mode=true
-Dpermissive-script-security.enabled=true
-XX:ReservedCodeCacheSize=256m
-XX:InitialCodeCacheSize=128m
-XX:+UseCodeCacheFlushing
logging:
driver: syslog
options:
tag: jenkins
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment