-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (27 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (27 loc) · 964 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
services:
scanlyne:
build: .
ports:
- "5000:5000"
volumes:
# Named volumes keep the database and scan XML files across container restarts.
- scanlyne_db:/app/instance
- scanlyne_scans:/app/scans
environment:
# Generate a real secret key for any non-local deployment:
# python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY: change-me-in-production
# Uncomment to enable HTTP Basic Auth:
# SCANLYNE_USERNAME: admin
# SCANLYNE_PASSWORD: yourpassword
# NET_RAW + NET_ADMIN let nmap run privileged scans (-sS, -O) as a
# non-root user. Remove these if you only run -sT (TCP connect) scans.
cap_add:
- NET_RAW
- NET_ADMIN
# For scanning hosts on your LAN from Linux, replace the port mapping above
# with host networking (not supported on Docker Desktop for Mac/Windows):
# network_mode: host
volumes:
scanlyne_db:
scanlyne_scans: