Add docker-compose.yaml
This commit is contained in:
commit
6491f72d79
23
docker-compose.yaml
Normal file
23
docker-compose.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
# Jenkins Sandbox
|
||||
version: "3"
|
||||
services:
|
||||
jenkins:
|
||||
image: jenkins/jenkins:lts
|
||||
container_name: jenkins_sandbox
|
||||
privileged: true
|
||||
user: root
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 50000:50000
|
||||
volumes:
|
||||
- ${JENKINS_HOME_PATH}:/var/jenkins_home
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
agent:
|
||||
image: jenkins/ssh-agent:jdk11
|
||||
container_name: jenkins_sandbox_agent
|
||||
privileged: true
|
||||
user: root
|
||||
expose:
|
||||
- 22
|
||||
environment:
|
||||
- JENKINS_AGENT_SSH_PUBKEY=${JENKINS_AGENT_SSH_PUBLIC_KEY}
|
||||
Loading…
x
Reference in New Issue
Block a user