-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (32 loc) · 1012 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (32 loc) · 1012 Bytes
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
version: '3.8'
services:
jenkins-master:
# repo digest sha256:1fd79ceb68ce883fb86db70bdbf7f9eaa8b25e580aafe7a240235240396e3916 corresponds to tag 'lts' on 13.04.2024
image: jenkins/jenkins@sha256:1fd79ceb68ce883fb86db70bdbf7f9eaa8b25e580aafe7a240235240396e3916
container_name: jenkins-master
ports:
- "8080:8080"
- "50000:50000"
volumes:
- jenkins_home:/var/jenkins_home
environment:
- JENKINS_OPTS=--prefix=/jenkins
restart: unless-stopped
jenkins-agent:
container_name: jenkins-agent1
depends_on:
- jenkins-master
# build docker image from prepared dockerfile-python-agent
build:
context: .
dockerfile: dockerfile-python-agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- jenkins_agent_home:/home/jenkins
command: -url http://jenkins-master:8080/jenkins <secret> python-agent1
tty: true
stdin_open: true
restart: unless-stopped
volumes:
jenkins_home:
jenkins_agent_home: