Skip to content

Instantly share code, notes, and snippets.

@dalthonmh
Created July 31, 2025 13:56
Show Gist options
  • Save dalthonmh/28f6a1d45fae36fdde0f13dcab6059d3 to your computer and use it in GitHub Desktop.
Save dalthonmh/28f6a1d45fae36fdde0f13dcab6059d3 to your computer and use it in GitHub Desktop.
Install Jenkins with docker compose file
services:
jenkins:
container_name: jenkins_docker_compose
image: jenkins/jenkins:alpine
ports:
- "8099:8080"
- "50000:50000"
privileged: true
user: root
volumes:
- jenkins_home:/var/jenkins_home
restart: always
networks:
- net_jenkins
volumes:
jenkins_home:
networks:
net_jenkins:
@dalthonmh
Copy link
Author

To show the admin password that is needed in installation execute:
docker exec jenkins_docker_compose cat /var/jenkins_home/secrets/initialAdminPassword

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment