forked from hoto/jenkinsfile-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·43 lines (39 loc) · 932 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
version: '3.5'
services:
jenkins:
image: docker.io/hoto/jenkinsfile-examples
build: .
ports:
- target: 8080
published: 8080
volumes:
- type: bind
source: '/var/run/docker.sock'
target: '/var/run/docker.sock'
read_only: true
networks:
- jenkins-network
tty: true
jenkinsfile-loader:
image: docker.io/hoto/jenkinsfile-loader:1.1.0
environment:
JENKINS_URL: 'http://jenkins:8080'
CONFIGS_XML_DIR: '/usr/local/src/configs'
JENKINSFILES_DIR: '/usr/local/src/jenkinsfiles'
DEBUG: 'false'
volumes:
- type: bind
source: '${PWD}/configs'
target: '/usr/local/src/configs'
read_only: true
- type: bind
source: '${PWD}/jenkinsfiles'
target: '/usr/local/src/jenkinsfiles'
read_only: true
depends_on:
- jenkins
networks:
- jenkins-network
tty: true
networks:
jenkins-network: