main
sundayenglish 9 months ago
parent b2a62b1c81
commit dded865e74
  1. 5
      README.md
  2. 17
      docker-compose.yml

@ -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```

@ -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
Loading…
Cancel
Save