forked from BaseMax/SimpleFastPyAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
32 lines (30 loc) · 739 Bytes
/
compose.yaml
File metadata and controls
32 lines (30 loc) · 739 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
services:
jenkins-master:
image: jenkins/jenkins:2.464-jdk17
ports:
- 8080:8080
environment:
- JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
volumes:
- type: bind
source: ./jenkins_master
target: /var/jenkins_home
networks:
- jenkins
restart: on-failure
jenkins-slave:
image: jenkins-agent:latest
depends_on:
- jenkins-master
environment:
JENKINS_WEB_SOCKET: "true"
JENKINS_URL: "http://jenkins-master:8080"
JENKINS_SECRET: "xxx"
JENKINS_AGENT_NAME: "agent-1"
init: true
restart: on-failure
networks:
- jenkins
networks:
# The presence of these objects is sufficient to define them
jenkins: {}