20 lines
447 B
YAML
20 lines
447 B
YAML
services:
|
|
jenkins:
|
|
image: jenkins/jenkins:lts-jdk17
|
|
container_name: jenkins
|
|
ports:
|
|
- "8080:8080"
|
|
- "50000:50000"
|
|
volumes:
|
|
- jenkins_home:/var/jenkins_home
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /usr/bin/docker:/usr/bin/docker
|
|
- /opt/shagram:/workspace
|
|
environment:
|
|
- DOCKER_HOST=unix:///var/run/docker.sock
|
|
user: root
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
jenkins_home:
|