Skip to content

Instantly share code, notes, and snippets.

@isc30
Last active November 3, 2020 15:36
Show Gist options
  • Save isc30/8b02078e70d69f2ad93d60b0f2ab4ce5 to your computer and use it in GitHub Desktop.
Save isc30/8b02078e70d69f2ad93d60b0f2ab4ce5 to your computer and use it in GitHub Desktop.
Jenkins Docker-Compose
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