-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·69 lines (64 loc) · 1.61 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '2.1'
services:
db:
container_name: continuoussecurity_db
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
ports:
- "${DB_PORT}:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 30s
timeout: 10s
retries: 5
ngspring:
container_name: continuoussecurity_demo
image: continuous-security/demo
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
depends_on:
db:
condition: service_healthy
links:
- db
networks:
default:
aliases:
- app
healthcheck:
test: ["CMD", "wget", "http://localhost:${SERVER_PORT}/login"]
interval: 30s
timeout: 10s
retries: 5
zap:
container_name: continuoussecurity_zap
image: owasp/zap2docker-stable
ports:
- "${ZAP_PORT}:${ZAP_PORT}"
- "80:${ZAP_PORT}"
expose:
- 80
user: zap
depends_on:
ngspring:
condition: service_healthy
links:
- ngspring
networks:
default:
aliases:
- zap
healthcheck:
test: ["CMD", "wget", "http://localhost:${ZAP_PORT}"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./target/zap:/zap/wrk:rw
# You can start the ZAP in headless mode with xvfb following command
# or: zap-baseline.py -t http://ngspring:41180
command: zap-x.sh -daemon -port ${ZAP_PORT} -host 0.0.0.0 -config api.disablekey=true -config api.addrs.addr.name=.* -config api.addrs.addr.regex=true