forked from ianmiell/jenkins-phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1.07 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
version: '2.2'
services:
postgres:
hostname: postgres
image: mdillon/postgis
slave:
build: jenkinsslave1
scale: 8
environment:
- ANOTHER_SSH_HOST=another_machine
- ANOTHER_SSH_PASS=very_secret
jenkinsdockerslave1:
container_name: jenkinsdockerslave1
build: jenkinsdockerslave1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
environment:
- ANOTHER_SSH_HOST=another_machine
- ANOTHER_SSH_PASS=very_secret
jenkins:
build: jenkins
container_name: jenkins
ports:
- "127.0.0.1:8080:8080"
- "127.0.0.1:50000:50000"
links:
- jenkinsdockerslave1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
environment:
- JAVA_OPTS=-Dhudson.footerURL=http://mycompany.com
jenkinssetup:
container_name: jenkinssetup
build: jenkinssetup
links:
- jenkins
#jenkinsswarmslave1:
# container_name: jenkinsswarmslave1
# build: jenkinsswarmslave1
# links:
# - jenkins