From dded865e74112099fca6dd9527257bb67146d497 Mon Sep 17 00:00:00 2001 From: sundayenglish Date: Tue, 29 Oct 2024 10:32:26 +0700 Subject: [PATCH] add init --- README.md | 5 +++++ docker-compose.yml | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index e69de29..841ca21 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,5 @@ +### 1. khởi động Docker + ```docker compose up -d``` +### 2. khởi động Docker +Now, you're ready to install plugins and start creating pipelines. If you want to stop the Jenkins container you can do it with docker-compose down. When you restart it all your configuration, users, plugins previously installed will persist there. +```docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..73e1510 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.7' +services: + jenkins: + image: jenkins/jenkins:lts + container_name: jenkins_se + privileged: true + user: root + ports: + - 8085:8080 + - 51000:51000 + environment: + JENKINS_ADMIN_ID: admin + JENKINS_ADMIN_PASSWORD: gk@corp@22$ + volumes: + - ~/jenkins:/var/jenkins_home + - /var/run/docker.sock:/var/run/docker.sock + - /usr/local/bin/docker:/usr/local/bin/docker