forked from sundayenglish/cicd-se
Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
|
82a7f26433 | 9 months ago |
|
507eced65a | 9 months ago |
|
97c3d8cef3 | 9 months ago |
|
d125bdb299 | 9 months ago |
|
5dc9b12c48 | 9 months ago |
|
946192e651 | 9 months ago |
|
dded865e74 | 9 months ago |
3 changed files with 32 additions and 0 deletions
@ -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_se cat /var/jenkins_home/secrets/initialAdminPassword``` |
@ -0,0 +1,27 @@ |
||||
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 |
||||
# - ./jenkins_data:/var/jenkins_home |
||||
- ~/.ssh:/root/.ssh |
||||
- /var/run/docker.sock:/var/run/docker.sock |
||||
- /usr/local/bin/docker:/usr/local/bin/docker |
||||
- /projects:/projects |
||||
networks: |
||||
- app-network |
||||
networks: |
||||
app-network: |
||||
name: gk.internal |
||||
#driver: bridge |
||||
external: true |
Loading…
Reference in new issue