-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.34 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.6"
services:
mk-jenkins:
build:
context: ./jenkins
dockerfile: Dockerfile
container_name: mk-jenkins
image: mk-jenkins
container_name: mk-jenkins
privileged: true
restart: unless-stopped
expose:
- 8080
volumes:
- jenkins-data:/var/jenkins_home
- jenkins-docker-certs:/certs/client:ro
environment:
- DOCKER_TLS_VERIFY:1
- DOCKER_CERT_PATH:/certs/client
- DOCKER_HOST:tcp://docker:2376
networks:
- mk_ci_proxy
mk-docker:
image: docker:dind
privileged: true
container_name: mk-docker
restart: unless-stopped
hostname: docker
ports:
- 2376:2376
volumes:
- jenkins-data:/var/jenkins_home
- jenkins-docker-certs:/certs/client
environment:
- DOCKER_TLS_CERTDIR:/certs
networks:
mk_ci_proxy:
aliases:
- docker
- mk_ci_proxy
mk-haproxy:
build:
context: ./haproxy
dockerfile: Dockerfile
image: mk-haproxy
depends_on:
- mk-jenkins
- mk-docker
container_name: mk-haproxy
restart: unless-stopped
ports:
- 80:80
networks:
- mk_ci_proxy
networks:
mk_ci_proxy:
volumes:
jenkins-data:
driver: local
name: jenkins-data
jenkins-docker-certs:
driver: local
name: jenkins-docker-certs