change order of servers to follow build pipeline

This commit is contained in:
Nicholas Mucks 2024-07-28 19:09:34 -07:00
parent 2e5ffa6d9c
commit e00e31b589

View file

@ -10,6 +10,27 @@ services:
networks:
- 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:
image: prom/prometheus:latest
ports:
@ -36,26 +57,6 @@ services:
- 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:
image: ghcr.io/zaproxy/zaproxy:stable
command: zap-baseline.py -t http://petclinic:8080 -g gen.conf -r zap-report.html