-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 889 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
41
42
43
44
version: '3.7'
services:
jenkins-docker:
image: docker:dind
container_name: jenkins-docker
privileged: true
environment:
- DOCKER_TLS_CERTDIR=/certs
volumes:
- jenkins-docker-certs:/certs/client
- jenkins-data:/var/jenkins_home
ports:
- "2376:2376"
networks:
jenkins:
aliases:
- docker
command: --storage-driver overlay2
my-jenkins:
image: my-jenkins
container_name: my-jenkins
restart: on-failure
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
ports:
- "8080:8080"
- "50000:50000"
networks:
- jenkins
networks:
jenkins:
driver: bridge
volumes:
jenkins-docker-certs:
jenkins-data: