Created
June 8, 2020 07:05
-
-
Save initcron/0f83a250b3705eb30f1e27593f5e1cf2 to your computer and use it in GitHub Desktop.
Docker Compose spec to launch Jenkins along with dind (docker host) as per the official documentation at https://www.jenkins.io/doc/book/installing/#installation-platforms
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.8" | |
networks: | |
jenkins: | |
driver: bridge | |
volumes: | |
jenkins-docker-certs: | |
jenkins-data: | |
services: | |
docker: | |
image: docker:dind | |
ports: | |
- 2376:2376 | |
environment: | |
- DOCKER_TLS_CERTDIR=/certs | |
networks: | |
jenkins: | |
aliases: | |
- docker | |
privileged: true | |
volumes: | |
- jenkins-docker-certs:/certs/client | |
- jenkins-data:/var/jenkins_home | |
jenkins: | |
image: jenkinsci/blueocean | |
ports: | |
- 8080:8080 | |
- 50000:50000 | |
environment: | |
- DOCKER_HOST=tcp://docker:2376 | |
- DOCKER_CERT_PATH=/certs/client | |
- DOCKER_TLS_VERIFY=1 | |
networks: | |
jenkins: | |
aliases: | |
- docker | |
volumes: | |
- jenkins-data:/var/jenkins_home | |
- jenkins-docker-certs:/certs/client:ro | |
depends_on: | |
- docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment