-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 955 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
45
46
47
services:
dind:
image: docker:dind
container_name: dind
privileged: true
user: root
ports:
- "2376:2376"
environment:
DOCKER_TLS_CERTDIR: /certs
volumes:
- docker-certs-ca:/certs/ca
- docker-certs-client:/certs/client
- jenkins-data:/var/jenkins_home
networks:
jenkins:
aliases:
- docker
jenkins:
image: jenkins/jenkins:lts-jdk11
container_name: jenkins
restart: unless-stopped
user: root
environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_CERT_PATH: /certs/client
DOCKER_TLS_VERIFY: 1
volumes:
- docker-certs-client:/certs/client:ro
- jenkins-data:/var/jenkins_home
- /usr/bin/docker:/usr/bin/docker
ports:
- "8080:8080"
- "50000:50000"
networks:
- jenkins
depends_on:
- dind
networks:
jenkins:
volumes:
docker-certs-ca:
docker-certs-client:
jenkins-data: