mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
change order of servers to follow build pipeline
This commit is contained in:
parent
2e5ffa6d9c
commit
e00e31b589
1 changed files with 21 additions and 20 deletions
|
@ -10,6 +10,27 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- custom-network
|
- custom-network
|
||||||
|
|
||||||
|
|
||||||
|
jenkins:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.jenkins
|
||||||
|
image: my-jenkins:latest
|
||||||
|
ports:
|
||||||
|
- "8081:8080"
|
||||||
|
- "50000:50000"
|
||||||
|
privileged: true
|
||||||
|
user: root
|
||||||
|
environment:
|
||||||
|
- JAVA_OPTS=-Djenkins.install.runSetupWizard=false
|
||||||
|
- CASC_JENKINS_CONFIG=/var/jenkins_home/casc_configs/jenkins.yaml
|
||||||
|
volumes:
|
||||||
|
- ./jenkins_data:/var/jenkins_home
|
||||||
|
- ./jenkins.yaml:/var/jenkins_home/casc_configs/jenkins.yaml
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
networks:
|
||||||
|
- custom-network
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
ports:
|
ports:
|
||||||
|
@ -36,26 +57,6 @@ services:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
|
|
||||||
jenkins:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile.jenkins
|
|
||||||
image: my-jenkins:latest
|
|
||||||
ports:
|
|
||||||
- "8081:8080"
|
|
||||||
- "50000:50000"
|
|
||||||
privileged: true
|
|
||||||
user: root
|
|
||||||
environment:
|
|
||||||
- JAVA_OPTS=-Djenkins.install.runSetupWizard=false
|
|
||||||
- CASC_JENKINS_CONFIG=/var/jenkins_home/casc_configs/jenkins.yaml
|
|
||||||
volumes:
|
|
||||||
- ./jenkins_data:/var/jenkins_home
|
|
||||||
- ./jenkins.yaml:/var/jenkins_home/casc_configs/jenkins.yaml
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
networks:
|
|
||||||
- custom-network
|
|
||||||
|
|
||||||
zap:
|
zap:
|
||||||
image: ghcr.io/zaproxy/zaproxy:stable
|
image: ghcr.io/zaproxy/zaproxy:stable
|
||||||
command: zap-baseline.py -t http://petclinic:8080 -g gen.conf -r zap-report.html
|
command: zap-baseline.py -t http://petclinic:8080 -g gen.conf -r zap-report.html
|
||||||
|
|
Loading…
Reference in a new issue