2024-09-28 04:03:12 -04:00
|
|
|
services:
|
|
|
|
jenkins-controller:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: jenkins.Dockerfile
|
|
|
|
environment:
|
|
|
|
- CASC_JENKINS_CONFIG=/jenkins.yml
|
|
|
|
volumes:
|
|
|
|
- ./jenkins.yml:/jenkins.yml
|
|
|
|
- ./id_rsa:/secrets/id_rsa
|
|
|
|
- ./adminpassword:/secrets/adminpassword
|
2024-09-28 07:47:13 -04:00
|
|
|
- /home/jenkins/jenkins-data:/var/jenkins_home
|
2024-09-28 04:03:12 -04:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
jenkins-agent:
|
|
|
|
env_file: ./agent.env
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: jenkins-agent.Dockerfile
|
2024-09-28 04:53:40 -04:00
|
|
|
args:
|
|
|
|
DOCKER_GROUP: '${DOCKER_GROUP}'
|
2024-09-28 04:03:12 -04:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|