Skip to content

Instantly share code, notes, and snippets.

@melvinpetix
Created February 17, 2022 07:32
Show Gist options
  • Save melvinpetix/06c51100424959202a010d430e739f06 to your computer and use it in GitHub Desktop.
Save melvinpetix/06c51100424959202a010d430e739f06 to your computer and use it in GitHub Desktop.
version: "3.9"
services:
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins-server
privileged: true
hostname: jenkinsserver
user: root
- "8080:8080"
- "50000:50000"
networks:
jenkins-net:
aliases:
- jenkins-net
volumes:
- jenkins-data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
volumes:
jenkins-data:
networks:
jenkins-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment