Created
July 31, 2025 13:56
-
-
Save dalthonmh/28f6a1d45fae36fdde0f13dcab6059d3 to your computer and use it in GitHub Desktop.
Install Jenkins with docker compose file
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
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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To show the admin password that is needed in installation execute:
docker exec jenkins_docker_compose cat /var/jenkins_home/secrets/initialAdminPassword