-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-stack.yml
81 lines (79 loc) · 1.98 KB
/
docker-stack.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.7'
networks:
backend:
services:
jenkins:
image: "nc/jenkins-master-dev:${JENKINS_IMAGE_VERSION:-latest}"
shm_size: '40gb'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
backend:
autodestroy: always
deployment_strategy: high_availability
labels:
com.netcompany.dockerized.jenkins: "POC"
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 5m
placement:
constraints: [node.labels.type == master]
jenkins-nginx:
image: "nc/jenkins-master-nginx-dev:${JENKINS_NGINX_IMAGE_VERSION:-latest}"
depends_on:
- jenkins
networks:
backend:
ports:
- "80:80"
- "443:443"
autodestroy: always
deployment_strategy: high_availability
labels:
com.netcompany.dockerized.jenkins.nginx: "POC"
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 5m
placement:
constraints: [node.labels.type == master]
jenkins-build-slave:
image: "nc/jenkins-standard-build-slave-dev:${JENKINS_STANDARD_SLAVE_IMAGE_VERSION:-latest}"
shm_size: '20gb'
depends_on:
- jenkins
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
backend:
autodestroy: always
labels:
com.netcompany.dockerized.jenkins.build.slave: "POC"
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 5m
placement:
constraints: [node.labels.type == slave]
jenkins-deploy-slave:
image: "nc/jenkins-deploy-slave-dev:${JENKINS_DEPLOY_SLAVE_IMAGE_VERSION:-latest}"
depends_on:
- jenkins
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
backend:
autodestroy: always
labels:
com.netcompany.dockerized.jenkins.deploy.slave: "POC"
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 5m
placement:
constraints: [node.labels.type == slave]