-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 887 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 887 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
32
33
34
35
36
37
38
version: '3.8'
services:
netaudit:
build:
context: .
dockerfile: Dockerfile_production
container_name: netaudit-webapp
ports:
- "5000:5000"
volumes:
- ./reports:/app/reports
- ./static:/app/static
environment:
- FLASK_ENV=production
- PYTHONUNBUFFERED=1
network_mode: host # Required for network scanning
cap_add:
- NET_ADMIN
- NET_RAW
privileged: true # Required for packet capture
restart: unless-stopped
# Optional: Add nginx reverse proxy for production
nginx:
image: nginx:alpine
container_name: netaudit-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro # Optional SSL certificates
depends_on:
- netaudit
restart: unless-stopped
profiles:
- production