-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-stack.yml
50 lines (50 loc) · 1.35 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
version: '3'
services:
jenkins-master:
image: <container-registry-url>/cicd/jenkins-master:2.101-alpine
networks:
spacely-eng:
aliases:
- jenkins-master-docker-only.example.com
depends_on:
- jenkins-nginx
volumes:
- /nfs/docker-data/container-data/cicd/jenkins/jenkins-master/logs:/var/log/jenkins
- /nfs/docker-data/container-data/cicd/jenkins/jenkins-master/home:/var/jenkins_home
deploy:
labels:
- jenkins-master_service
mode: replicated
replicas: 1
placement:
constraints: [node.labels.cicdBuildsOnly != true]
update_config:
parallelism: 1
restart_policy:
condition: any
jenkins-nginx:
image: <container-registry-url>/cicd/jenkins-nginx:1.13.8-alpine
networks:
spacely-eng:
aliases:
- jenkins-nginx-docker-only.example.com
ports:
- 52443:443
- 50000:50000
volumes:
- /nfs/docker-data/container-data/cicd/jenkins/jenkins-nginx/certs:/etc/ssl/certs/nginx:ro
deploy:
labels:
- jenkins-nginx_service
mode: replicated
replicas: 1
placement:
constraints: [node.labels.cicdBuildsOnly != true]
update_config:
parallelism: 1
restart_policy:
condition: any
networks:
spacely-eng:
external:
name: spacely-eng-core