Created
June 5, 2020 04:29
-
-
Save sidpalas/25b0cbe5cbb89ca2abf59f698fc4a3be to your computer and use it in GitHub Desktop.
Docker compose file for setting up Jenkins + dind
This file contains 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: | |
dind: | |
image: "docker:dind" | |
volumes: | |
- jenkins-docker-certs:/certs/client | |
- jenkins-data:/var/jenkins_home | |
networks: | |
jenkins: | |
aliases: | |
- docker | |
ports: | |
- "2376:2376" | |
environment: | |
DOCKER_TLS_CERTDIR: "/certs" | |
privileged: true | |
jenkins: | |
image: "jenkinsci/blueocean" | |
volumes: | |
- jenkins-data:/var/jenkins_home | |
- jenkins-docker-certs:/certs/client:ro | |
ports: | |
- "8080:8080" | |
- "50000:50000" | |
environment: | |
DOCKER_HOST: "tcp://docker:2376" | |
DOCKER_CERT_PATH: "/certs/client" | |
DOCKER_TLS_VERIFY: 1 | |
volumes: | |
jenkins-docker-certs: | |
jenkins-data: | |
networks: | |
jenkins: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment