-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (67 loc) · 1.68 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'
services:
jenkins:
build:
dockerfile: Dockerfile
context: docker
ports:
- 8080:8080
- 50000:50000
volumes:
- "jenkins_home:/var/jenkins_home"
- "./config:/etc/jenkins/config:ro"
environment:
CASC_JENKINS_CONFIG: /etc/jenkins/config/jcasc/
ulimits:
nofile:
soft: 122880
hard: 122880
artifactory:
image: docker.bintray.io/jfrog/artifactory-oss:7.12.8
volumes:
- "artifactory_data:/var/opt/jfrog/artifactory"
ports:
- 8081:8081
- 8082:8082
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
agent1:
build:
dockerfile: agent.Dockerfile
context: docker
entrypoint: bash /usr/local/bin/wait-for-jenkins.sh /usr/local/bin/jenkins-agent
volumes:
- "./docker/wait-for-jenkins.sh:/usr/local/bin/wait-for-jenkins.sh"
- "agent1-workdir:/home/jenkins/agent"
environment:
JENKINS_URL: 'http://jenkins:8080'
JENKINS_SECRET: "@/tmp/secret"
JENKINS_AGENT_NAME: agent1
depends_on:
- jenkins
agent2:
build:
dockerfile: agent.Dockerfile
context: docker
entrypoint: bash /usr/local/bin/wait-for-jenkins.sh /usr/local/bin/jenkins-agent
volumes:
- "./docker/wait-for-jenkins.sh:/usr/local/bin/wait-for-jenkins.sh"
- "agent2-workdir:/home/jenkins/agent"
environment:
JENKINS_URL: 'http://jenkins:8080'
JENKINS_SECRET: "@/tmp/secret"
JENKINS_AGENT_NAME: agent2
depends_on:
- jenkins
mail-server:
image: mailhog/mailhog:v1.0.1
ports:
- 8025:8025
volumes:
jenkins_home:
agent1-workdir:
agent2-workdir:
artifactory_data: