Skip to content

Instantly share code, notes, and snippets.

@purwandi
Last active June 17, 2021 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purwandi/c5b7390577f946a5d9edd54b235c3fc9 to your computer and use it in GitHub Desktop.
Save purwandi/c5b7390577f946a5d9edd54b235c3fc9 to your computer and use it in GitHub Desktop.
Jenkins Nexus
version: '3'
services:
nexus:
image: sonatype/nexus3
volumes:
- ./storage-nexus:/nexus-data
ports:
- 8081:8081
- 8082:8082 # docker proxy
- 8083:8083 # docker hosted
docker:
image: docker:dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: /certs
volumes:
- ./storage-jenkins:/var/jenkins_home
- ./storage-docker:/certs/client
jenkins:
image: jenkinsci/blueocean:1.24.7
container_name: jenkins
privileged: true
environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_CERT_PATH: /certs/client
DOCKER_TLS_VERIFY: 1
volumes:
- ./storage-jenkins:/var/jenkins_home
- ./storage-docker:/certs/client:ro
ports:
- 8080:8080
- 50000:50000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment