Created
January 3, 2020 16:03
-
-
Save Vitsen15/def240ba8f27237b9b13624a25887d1b to your computer and use it in GitHub Desktop.
Jenkins inside docker
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.7" | |
services: | |
jenkins: | |
container_name: jenkins | |
image: jenkinsci/blueocean | |
environment: | |
- DOCKER_HOST=tcp://docker:2376 | |
- DOCKER_CERT_PATH=/certs/client | |
- DOCKER_TLS_VERIFY=1 | |
ports: | |
- "8080:8080" | |
- "50000:50000" | |
volumes: | |
- type: volume | |
source: jenkins-data | |
target: /var/jenkins_home | |
- type: volume | |
source: jenkins-docker-certs | |
target: '/certs/client:ro' | |
networks: | |
jenkins: | |
privileged: true | |
volumes: | |
jenkins-data: | |
jenkins-docker-certs: | |
networks: | |
jenkins: | |
driver: bridge | |
ipam: | |
driver: default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment