-
Notifications
You must be signed in to change notification settings - Fork 110
/
docker-compose.yml
67 lines (63 loc) · 1.56 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: "2"
services:
jmaster:
build:
context: master/
args:
- http_proxy
- https_proxy
- no_proxy
- JAVA_PROXY
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "3"
ports:
- "8080:8080"
- "50000:50000"
volumes:
- $HOME/.ssh:/var/jenkins_home/.ssh
- $HOME/jenkins-backup/jobs:/var/jenkins_home/jobs
- $HOME/jenkins-backup/userContent:/var/jenkins_home/userContent
- /etc/localtime:/etc/localtime
jslave:
build:
context: slave/
args:
- http_proxy
- https_proxy
- no_proxy
- JAVA_PROXY
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "3"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
- $HOME/jenkins-backup/slave/gradle:/root/.gradle
- $HOME/jenkins-backup/workspace:/root/workspace
- /etc/localtime:/etc/localtime
registry:
image: registry:2.4.0
restart: unless-stopped
ports:
- 5000:5000
volumes:
- $HOME/jenkins-backup/registry:/var/lib/registry
- /etc/localtime:/etc/localtime
registry-web:
image: konradkleine/docker-registry-frontend:v2
restart: unless-stopped
ports:
- 8081:80
environment:
- ENV_DOCKER_REGISTRY_HOST=registry
- ENV_DOCKER_REGISTRY_PORT=5000
- ENV_MODE_BROWSE_ONLY=true
volumes:
- /etc/localtime:/etc/localtime