version: "3.9" # docker-compose.yml — primarily used for local development and testing. # Production deployments should use the binary directly or the container image # published to ghcr.io via the release workflow. # # Usage: # docker compose --profile dev up nox # docker compose --profile dev run --rm nox scan --target example.com services: nox: build: context: . dockerfile: Dockerfile image: nox:local container_name: nox profiles: - dev # Load environment variables from .env (copy .env.example to get started) env_file: - .env volumes: # Persist scan output on the host - ./output:/app/output # Mount configuration directory so configs can be edited without rebuilding - ./configs:/app/configs:ro # Allow interactive use (CLI tool) stdin_open: true tty: true # Drop all capabilities; re-add only what specific modules need cap_drop: - ALL # NOX is a CLI tool — no ports needed network_mode: host restart: "no"