-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.override.yml
94 lines (94 loc) · 2.71 KB
/
docker-compose.override.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
backend:
build:
context: .
profiles:
- minimal_required_node
command: yarn server
user: ${CURRENT_USER:-root}
ports:
- "8080:8080"
depends_on:
- db
- redis
environment:
- POSTGRES_HOST=postgres_docker
- REDIS_HOST=redis
- SMTP_HOST=mailcatcher
# On an M1 mac, puppeteer install fails with the message:
# "The chromium binary is not available for arm64"
#
# The below instructs the container to skip downloading chromium and use the host's binary instead.
# If you're not on an M1 mac, you can comment this out or just leave it, the undefined exports will have no effect.
# I installed chromium with brew: `brew install chromium --no-quarantine`
#
# In ~/.zshrc (in my case) add:
# export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# export PUPPETEER_EXECUTABLE_PATH=`which chromium`
- PUPPETEER_EXECUTABLE_PATH
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
volumes:
- ".:/app:rw"
- "node_modules-backend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"
frontend:
build:
context: .
profiles:
- minimal_required_node
command: yarn start
user: ${CURRENT_USER:-root}
stdin_open: true
ports:
- "3000:3000"
volumes:
- "./frontend:/app:rw"
- "./scripts:/app/scripts"
- "./packages:/packages:ro"
- "node_modules-frontend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"
environment:
- BACKEND_PROXY=http://backend:8080
- REACT_APP_WEBSOCKET_URL
worker:
build:
context: .
profiles:
- minimal_required_node
command: yarn worker
env_file: .env
depends_on:
- db
- redis
environment:
- POSTGRES_HOST=postgres_docker
- REDIS_HOST=redis
- SMTP_HOST=mailcatcher
volumes:
- ".:/app:rw"
- "node_modules-backend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"
owasp_zap_backend:
image: softwaresecurityproject/zap-stable:latest
profiles:
- full_stack_zap
platform: linux/arm64
user: zap
command: zap-full-scan.py -t http://backend:8080 -c zap.conf -i -r owasp_report_.html
volumes:
- ./zap.conf:/zap/wrk/zap.conf:ro
- ./reports:/zap/wrk:rw
depends_on:
- backend
owasp_zap_similarity:
image: softwaresecurityproject/zap-stable:latest
profiles:
- full_stack_zap
platform: linux/arm64
user: zap
command: zap-api-scan.py -t http://similarity:8080/openapi.json -f openapi -I -i -r owasp_api_report.html
volumes:
- ./zap.conf:/zap/wrk/zap.conf:ro
- ./reports:/zap/wrk:rw
depends_on:
- similarity_api