24 lines
586 B
YAML
24 lines
586 B
YAML
services:
|
|
jenkins-controller:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.jenkins
|
|
environment:
|
|
- CASC_JENKINS_CONFIG=/config/jenkins.yml
|
|
volumes:
|
|
- ./config:/config
|
|
- ./id_rsa:/secrets/id_rsa
|
|
- ./adminpassword:/secrets/adminpassword
|
|
- /home/jenkins/jenkins-data:/var/jenkins_home
|
|
ports:
|
|
- 8080:8080
|
|
jenkins-agent:
|
|
env_file: ./agent.env
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.agent
|
|
args:
|
|
DOCKER_GROUP: '${DOCKER_GROUP}'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|