Last active
July 4, 2020 21:57
-
-
Save MrFroll/bd25be63cc20b68d1d27840dfe0d10aa to your computer and use it in GitHub Desktop.
docker-compose.yaml for https://www.jenkins.io/doc/book/installing/ instructions
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: '2' | |
| services: | |
| jenkins: | |
| image: docker:dind | |
| container_name: docker | |
| restart: always | |
| privileged: true | |
| networks: | |
| - jenkins_net | |
| environment: | |
| - DOCKER_TLS_CERTDIR=/certs | |
| volumes: | |
| - ./data/certs:/certs/client | |
| - ./data/jenkins_home:/var/jenkins_home | |
| ports: | |
| - 2376:2376 | |
| blueocean: | |
| image: jenkinsci/blueocean | |
| container_name: jenkins_blueocean | |
| networks: | |
| - jenkins_net | |
| restart: always | |
| environment: | |
| - DOCKER_HOST=tcp://docker:2376 | |
| - DOCKER_CERT_PATH=/certs/client | |
| - DOCKER_TLS_VERIFY=1 | |
| volumes: | |
| - ./data/certs:/certs/client | |
| - ./data/jenkins_home:/var/jenkins_home | |
| ports: | |
| - 8080:8080 | |
| - 50000:50000 | |
| depends_on: | |
| - jenkins | |
| networks: | |
| jenkins_net: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment