-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (51 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
58 lines (51 loc) · 1.36 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
---
version: "3.8"
services:
elevadr:
build:
context: .
dockerfile: Dockerfile
image: elevadr-web-backend:latest
container_name: elevadr-analysis
cap_drop:
- ALL
# Environment variables
environment:
- PCAP_INPUT=${PCAP_INPUT:-/input/capture.pcap}
- REPORT_OUTPUT=${REPORT_OUTPUT:-/output/report.json}
- PYTHONUNBUFFERED=1
# Volume mounts
volumes:
# Mount your PCAP file(s)
- ./pcaps:/input:ro
# Mount output directory for reports
- ./reports:/output
# Optional: mount custom reference data
# - ./custom-data:/app/app/data/assessor_data:ro
# Resource limits
deploy:
resources:
limits:
memory: 4GB # Hard limit of 4GB
reservations:
memory: 512MB # Soft limit (reservation) of 512MB
# Automatically remove container after completion
# Remove this if you want to inspect logs afterward
# rm: true
# Restart policy
restart: "no"
security_opt:
- no-new-privileges:true
# Optional: Add a service to serve reports via HTTP
report-server:
image: nginx:alpine
container_name: elevadr-reports
ports:
- 127.0.0.1:8080:80
volumes:
- ./reports:/usr/share/nginx/html:ro
restart: unless-stopped
profiles:
- web-server
security_opt:
- no-new-privileges:true