-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
45 lines (43 loc) · 1013 Bytes
/
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
version: '2.3'
volumes:
jenkins_home:
external: true
services:
jenkins:
build:
context: .
target: jenkins
image: dpaws/jenkins
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
- DOCKER_GID
- JENKINS_USERNAME
- JENKINS_PASSWORD
- KMS_JENKINS_PASSWORD
healthcheck:
test: ["CMD", "curl", "-fs", "http://localhost:8080/login"]
interval: 5s
retries: 60
volumes:
- jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8080"
jenkins-slave:
build:
context: .
target: slave
args:
JENKINS_SLAVE_VERSION: ${JENKINS_SLAVE_VERSION}
image: dpaws/jenkins-slave
environment:
- DOCKER_GID
- JENKINS_URL=http://jenkins:8080/
- JENKINS_USERNAME
- JENKINS_SLAVE_LABELS
- JENKINS_PASSWORD
- KMS_JENKINS_PASSWORD
volumes:
- /var/run/docker.sock:/var/run/docker.sock