Jenkins with docker client
1.2K
Jenkins with docker client
version: '3.7'
services:
jenkins:
image: jkaninda/jenkins:lts
container_name: jenkins
user: root
ports:
- 8080:8080
- 50000:50000
volumes:
- ./data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
docker compose up -d
version: '3.7'
services:
jenkins:
image: jkaninda/jenkins:lts
user: root
ports:
- 8080:8080
- 50000:50000
volumes:
- data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
healthcheck:
test: ["CMD-SHELL", "curl -sS http://localhost:8080/login || exit 1"]
interval: 30s
timeout: 10s
retries: 5
volumes:
data:
Content type
Image
Digest
sha256:967e10c5b…
Size
617.2 MB
Last updated
over 2 years ago
docker pull jkaninda/jenkins