Last active
November 3, 2020 15:36
-
-
Save isc30/8b02078e70d69f2ad93d60b0f2ab4ce5 to your computer and use it in GitHub Desktop.
Jenkins Docker-Compose
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.4' | |
services: | |
jenkins: | |
restart: "unless-stopped" | |
image: 4oh4/jenkins-docker | |
volumes: | |
- "jenkins_data:/var/jenkins_home" | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
labels: | |
traefik.enable: "true" | |
traefik.backend: "jenkins" | |
traefik.frontend.rule: "Host:YOUR_HOST_HERE" | |
traefik.port: "8080" | |
networks: | |
- traefik | |
volumes: | |
jenkins_data: | |
external: true | |
networks: | |
traefik: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment