-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.build.yml
36 lines (33 loc) · 1.26 KB
/
docker-compose.build.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
version: "3"
services:
jenkins:
image: "jenkins/jenkins:lts"
privileged: true
user: root
container_name: "jenkins"
restart: always
ports:
- 8085:8080
- 50000:50000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker-volume/jenkins:/var/jenkins_home
agent:
image: jenkins/ssh-agent:jdk11
privileged: true
user: root
container_name: agent
expose:
- 22
environment:
- JENKINS_AGENT_SSH_PUBKEY=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDAnEiOyR5wEB9QpM0VzXL76s7hT0gdK/iTF6nu2/iVGBiIQLPfs2D83V+hlzs+ZAAyYDJqcayI/s9Oi6p+I7f5SklAecmb6+6RjCR/iH50B3DPSvw5N/mXXfjQVXCWMvIsuwEP9zRNLRbvvOklGNwqyMfToau89aTnaso5VG8yO99t7DKf/SEkHesN12wHueCUr1ftXFJbIP1lEld2EDFYhEU9l62/pLsW6it9vblsVgwZ/SsWo5K3xxi7tgJN1WwjJQIhvPc0+G+5pzywOlq+LX9YPg1GwIQD3Z1YTvcoRIMMmwVX8JiK+ibgTuOKexOENgJytvFV+DxIu/1qRc+J6OxCk67njZiw8LXSmBG+WLuFHu3w/YR7fIb3VQhE3TCFggQo66p+f2ZYP9avHAHB/JmrXu2e2xdNs5Us2O/Lmyy6Z14+Q24LqhRyEHfMIRppjCiWFDMDMDUfPi3ibvzcZex38hvjW6QdGLJO6rQta3pgPJieMG73CueoKXw72W8= [email protected]
localtunnel:
build:
context: .
dockerfile: Dockerfile-lt
links:
- jenkins
depends_on:
- jenkins
command:
--local-host jenkins --port 8080 --subdomain satzkr