Last active
June 17, 2021 14:39
-
-
Save purwandi/c5b7390577f946a5d9edd54b235c3fc9 to your computer and use it in GitHub Desktop.
Jenkins Nexus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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