-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
40 lines (36 loc) · 909 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3.8"
services:
jenkins-docker:
image: docker:dind
container_name: jenkins-docker
hostname: docker
privileged: true
ports:
- "2376:2376"
environment:
- DOCKER_TLS_CERTDIR=/certs
command: --storage-driver=overlay2
volumes:
- jenkins-docker-certs:/certs/client
- jenkins-data:/var/jenkins_home
jenkins:
build: myjenkins
image: jenkins-blueocean:2.440.2-jdk17
container_name: jenkins
privileged: true
ports:
- "8080:8080"
- "50000:50000"
environment:
- DOCKER_HOST=tcp://docker:2376
- DOCKER_CERT_PATH=/certs/client
- DOCKER_TLS_VERIFY=1
volumes:
- jenkins-data:/var/jenkins_home
- jenkins-docker-certs:/certs/client:ro
healthcheck:
test: "curl -f http://localhost:8080/login || exit 1"
start_period: 10s
volumes:
jenkins-data:
jenkins-docker-certs: