Skip to content

Instantly share code, notes, and snippets.

@Goggot
Last active June 16, 2019 17:24
Show Gist options
  • Save Goggot/044c774651bd55ff974faa5aff7f574b to your computer and use it in GitHub Desktop.
Save Goggot/044c774651bd55ff974faa5aff7f574b to your computer and use it in GitHub Desktop.
version: '3.5'
services:
jenkins:
image: jenkins/jenkins:latest
container_name: jenkins
user: jenkins
restart: always
volumes:
- /var/jenkins_home:/home/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
environment:
JENKINS_HOST_HOME: "/home/jenkins_home"
logging:
driver: journald
ports:
- "8080:8080"
- "5000:5000"
- "50000:50000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment