forked from cisagov/elevadr-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 762 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 762 Bytes
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
---
version: "3.8"
services:
elevadr-web:
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
- CHOWN
- SETUID
- SETGID
build:
context: .
dockerfile: Dockerfile
ports:
- 127.0.0.1:8080:80
volumes:
# Mount your local directory containing report.json to /usr/share/nginx/html/input
# Change ./reports to the path where your report files are located
- ./reports:/usr/share/nginx/html/input:ro
restart: unless-stopped
security_opt:
- no-new-privileges:true
container_name: elevadr-web-frontend
deploy:
resources:
limits:
memory: 512MB # Hard limit of 512MB
reservations:
memory: 200MB # Soft limit (reservation) of 200MB