Fix docker-compose-jenkins.yml
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
jenkins:
|
jenkins:
|
||||||
image: jenkins/jenkins:lts-jdk17
|
image: jenkins/jenkins:lts-jdk17
|
||||||
@@ -8,8 +10,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- jenkins_home:/var/jenkins_home
|
- jenkins_home:/var/jenkins_home
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /usr/bin/docker:/usr/bin/docker
|
||||||
- /opt/shagram:/workspace
|
- /opt/shagram:/workspace
|
||||||
|
environment:
|
||||||
|
- DOCKER_HOST=unix:///var/run/docker.sock
|
||||||
|
user: root
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
jenkins_home:
|
jenkins_home:
|
||||||
|
|||||||
Reference in New Issue
Block a user