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