-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
34 lines (31 loc) · 931 Bytes
/
docker-compose.yaml
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
version: '3.1'
# volumes:
# jenkins-home-master: {}
# jenkins-home-slave: {}
networks:
jenkinsnetwork:
driver: bridge
services:
jenkins:
container_name: jenkins-master
networks:
- jenkinsnetwork
ports:
- '8080:8080'
- '50000:50000'
image: jenkins-master
volumes:
- /Users/aassuhendar/Applications/Docker-Volume/docker-compose/jenkins/home-jenkins-master:/var/jenkins_home
jenkins-slave:
container_name: jenkins-slave
networks:
- jenkinsnetwork
restart: always
environment:
- 'JENKINS_URL=http://jenkins:8080'
image: jenkins-slave
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /Users/aassuhendar/Applications/Docker-Volume/docker-compose/jenkins/home-jenkins-slave:/home/jenkins
depends_on:
- jenkins