-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (33 loc) · 1.17 KB
/
docker-compose.yml
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
35
36
37
version: "3"
services:
# Node web service production image builder
node-webservice:
image: hydra/node-webservice
build: ./node-webservice
ports:
- "3000:3000"
volumes:
- ./node-webservice/prisma:/usr/app/prisma:rw
# .Net Core web service production image builder
dotnetcore-webservice:
image: hydra/dotnetcore-webservice
build: ./dotnetcore-webservice
ports:
- "3001:80"
volumes:
- ./dotnetcore-webservice/webservice/Entity:/app/Entity:rw
# Security scan the Node web service
zap-node:
image: owasp/zap2docker-stable:2.10.0
command: zap-api-scan.py -t http://host.docker.internal:3000/openapi.yml -f openapi -r node-webservice-report.html
volumes:
- ./node-webservice/security:/zap/wrk:rw
# If running a Linux host
# - /etc/timezone:/etc/timezone:ro
# - /etc/localtime:/etc/localtime:ro
# Security scan the Node web service
zap-dotnetcore:
image: owasp/zap2docker-stable:2.10.0
command: zap-api-scan.py -t http://host.docker.internal:3001/swagger/api/v1/swagger.json -f openapi -r dotnetcore-webservice-report.html
volumes:
- ./dotnetcore-webservice/security:/zap/wrk:rw