-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
175 lines (167 loc) · 4.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
175 lines (167 loc) · 4.64 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
name: docker-analyzer
services:
servicea-templates:
build:
context: ./services
dockerfile: ServiceA-Templates/Dockerfile
restart: unless-stopped
environment:
DOCKERHUB_ROOT: /artifacts
CweCatalog__EnableAutoUpdate: "false"
volumes:
- ./services/ServiceA-Templates/templates:/app/templates
- ./services/ServiceA-Templates/cwe_catalog:/app/cwe_catalog
- ./services/DockerHub:/artifacts
expose:
- "8080"
ports:
- "8081:8080"
networks:
- analyzer-net
servicec-readiness:
build:
context: ./services
dockerfile: ServiceC-Readiness/Dockerfile
restart: unless-stopped
environment:
DOCKERHUB_ROOT: /artifacts
ServiceC__Trivy__CacheDir: /trivy-db
volumes:
- ./services/trivy-db:/trivy-db
- ./services/DockerHub:/artifacts
expose:
- "8080"
ports:
- "8082:8080"
networks:
- analyzer-net
service-d-scan-raw:
build:
context: ./services
dockerfile: ServiceD-ScanRaw/Dockerfile
container_name: service-d-scan-raw
restart: unless-stopped
environment:
ARTIFACTS_ROOT: /artifacts
SCANNER_DB_SOURCE_DIR: /trivy-db
SCANNER_BIN: scanner
SCANNER_TIMEOUT_MINUTES: "10"
SCANNER_ENABLE_SECRETS: "false"
SCANNER_USE_SUDO: "false"
volumes:
- ./services/DockerHub:/artifacts
- ./services/trivy-db:/trivy-db:ro
expose:
- "8080"
ports:
- "8083:8080"
networks:
- analyzer-net
servicee-cwe-resolver:
build:
context: ./services
dockerfile: ServiceE-cwe-resolver/Dockerfile
container_name: servicee-cwe-resolver
restart: unless-stopped
environment:
ARTIFACTS_ROOT: /artifacts
ARTIFACTS_RETURN_ROOT: ../DockerHub
CACHE_ROOT: /work/cache
PROVIDERS_MODE: keys
PROXY_ROTATION_ENABLED: "0"
MAX_CONCURRENCY: "8"
PROXY_LIST_FILE: /app/proxies.txt
PROXY_SWITCH_EVERY: "10"
NVD_API_KEY: ""
GITHUB_TOKEN: ""
NVD_RPS_WITH_KEY: "1.5"
NVD_RPS_NO_KEY: "0.15"
NVD_KEY_DISABLE_MINUTES: "10"
volumes:
- ./services/DockerHub:/artifacts
- ./services/ServiceE-cwe-resolver/cache:/work/cache
- ./services/ServiceE-cwe-resolver/proxies.txt:/app/proxies.txt:ro
expose:
- "8080"
ports:
- "8084:8080"
networks:
- analyzer-net
service-f-final-report:
build:
context: ./services
dockerfile: ServiceF-FinalReport/Dockerfile
container_name: service-f-final-report
restart: unless-stopped
environment:
ARTIFACT_ROOT: /artifacts
SERVICEA_TEMPLATES_ROOT: /templates
volumes:
- ./services/DockerHub:/artifacts:ro
- ./services/ServiceA-Templates/templates:/templates:ro
expose:
- "8080"
ports:
- "8085:8080"
networks:
- analyzer-net
docker-analyzer-orchestrator:
build:
context: ./services/ServiceB-Orchestrator
dockerfile: Dockerfile
container_name: docker-analyzer-orchestrator
restart: unless-stopped
depends_on:
- servicea-templates
- servicec-readiness
- service-d-scan-raw
- servicee-cwe-resolver
environment:
NODE_ENV: production
PORT: "3001"
LOG_LEVEL: info
ARTIFACTS_ROOT: /artifacts
ANALYSIS_PROGRESS_POLL_MS: "2500"
UPSTREAM_CONNECT_TIMEOUT_MS: "10000"
UPSTREAM_QUICK_TIMEOUT_MS: "30000"
UPSTREAM_SCAN_TIMEOUT_MS: "1200000"
UPSTREAM_ENRICH_TIMEOUT_MS: "900000"
LOG_DIR: /artifacts/logs
SERVICE_A_BASE_URL: http://servicea-templates:8080
SERVICE_C_BASE_URL: http://servicec-readiness:8080
SERVICE_D_BASE_URL: http://service-d-scan-raw:8080
SERVICE_E_BASE_URL: http://servicee-cwe-resolver:8080
volumes:
- ./services/DockerHub:/artifacts
expose:
- "3001"
networks:
- analyzer-net
docker-analyzer-ui:
build:
context: ./docker-analyzer-ui
dockerfile: Dockerfile
container_name: docker-analyzer-ui
restart: unless-stopped
depends_on:
- docker-analyzer-orchestrator
- servicea-templates
- servicee-cwe-resolver
- service-f-final-report
ports:
- "3000:3000"
environment:
NODE_ENV: production
PORT: "3000"
LOG_LEVEL: info
LOG_DIR: /artifacts/logs
ORCHESTRATOR_BASE_URL: http://docker-analyzer-orchestrator:3001
SERVICE_A_BASE_URL: http://servicea-templates:8080
SERVICE_E_BASE_URL: http://servicee-cwe-resolver:8080
SERVICE_F_BASE_URL: http://service-f-final-report:8080
volumes:
- ./services/DockerHub:/artifacts
networks:
- analyzer-net
networks:
analyzer-net: