Last active
August 23, 2020 04:30
-
-
Save baiyongzhen/3da7cbcd98a26e96a0f41159d9a21b96 to your computer and use it in GitHub Desktop.
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: | |
| jenkins: | |
| build: | |
| context: . | |
| container_name: jenkins | |
| ports: | |
| - "8080:8080" | |
| user: root | |
| privileged: true | |
| restart: unless-stopped | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /opt/jenkins:/var/jenkins_home | |
| environment: | |
| - JENKINS_USER=admin | |
| - JENKINS_PASS=admin | |
| networks: | |
| jenkins: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment