This repository provides a simpler way to run Jenkins using Docker Compose. It is based on the official installation guide, but with one-command setup and management instead of running multiple docker commands manually.
- Docker Desktop installed on your computer
- 
Clone this repository 
- 
Start Jenkins: Make sure you are in the directory containing the compose.yamlandDockerfilefiles:docker compose up -d Note: Docker Compose will automatically build the custom Jenkins image from the Dockerfile. If you want to build it separately first, you can run:docker compose build 
- 
Access Jenkins: - Open your browser and go to: http://localhost:8080
 
- 
Unlock Jenkins: - The initial admin password is located in the Jenkins container:
docker exec my-jenkins cat /var/jenkins_home/secrets/initialAdminPassword
- Copy and paste this password into the Jenkins setup wizard.
 
- The initial admin password is located in the Jenkins container:
- 
Install suggested plugins and create your admin user. 
To stop the containers:
docker compose downThis will stop and remove the containers but keep your Jenkins data.
To restart Jenkins, just run:
docker compose up -dMake sure to stop all the containers using commands above before doing any update. To update Jenkins Core, build the custom Jenkins image again by running
docker compose buildNote: Plugin updates can simply be done through the Jenkins GUI.
To completely remove Jenkins and all associated resources:
docker compose down --volumes --rmi allThis command will:
- Stop and remove the containers
- Delete the network configuration
- Delete all Jenkins data (volumes)
- Remove the Docker images