Skip to content

Instantly share code, notes, and snippets.

@nicosingh
Created May 23, 2018 20:37
Show Gist options
  • Save nicosingh/b14b82657ebeacd56eeca12f7536c109 to your computer and use it in GitHub Desktop.
Save nicosingh/b14b82657ebeacd56eeca12f7536c109 to your computer and use it in GitHub Desktop.
jenkins + artifactory in Docker
# make sure volumes exist before starting this
# mkdir -p {jenkins/volumes/var/jenkins_home,artifactory}
jenkins:
image: jenkins/jenkins:2.84
restart: always
ports:
- "80:8080"
- "50000:50000"
volumes:
- ./jenkins/volumes/var/jenkins_home:/var/jenkins_home
artifactory:
image: docker.bintray.io/jfrog/artifactory-oss:5.0.0
restart: always
ports:
- "8081:8081"
volumes:
- "./artifactory:/var/opt/jfrog/artifactory"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment