-
Notifications
You must be signed in to change notification settings - Fork 115
/
jenkins.yml
53 lines (48 loc) · 1.14 KB
/
jenkins.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
version: '3.1'
services:
master:
image: vfarcic/jenkins
ports:
- 50000:50000
environment:
- JENKINS_OPTS="--prefix=/jenkins"
networks:
- proxy
- default
deploy:
labels:
- com.df.notify=true
- com.df.distribute=true
- com.df.servicePath=/jenkins
- com.df.port=8080
extra_hosts:
- "${SLACK_HOST:-devops20.slack.com}:${SLACK_IP:-54.192.78.227}"
secrets:
- jenkins-user
- jenkins-pass
agent:
image: vfarcic/jenkins-swarm-agent
environment:
- USER_NAME_SECRET=/run/secrets/${JENKINS_USER_SECRET:-jenkins-user}
- PASSWORD_SECRET=/run/secrets/${JENKINS_PASS_SECRET:-jenkins-pass}
- COMMAND_OPTIONS=-master http://master:8080/jenkins -labels 'prod' -executors 4
networks:
- default
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- jenkins-user
- jenkins-pass
deploy:
placement:
constraints: [node.role == manager]
networks:
proxy:
external: true
default:
external: false
secrets:
jenkins-user:
external: true
jenkins-pass:
external: true