# ─────────────────────────────────────────────
# ffuf-automation — docker-compose.yml
# Usage: docker compose run ffuf-auto --domains domains.txt --wordlist ...
# ─────────────────────────────────────────────
version: "3.8"

services:
  ffuf-auto:
    build:
      context: .
      dockerfile: Dockerfile
    image: ffuf-automation:latest
    container_name: ffuf-automation

    # ── Volume mounts ──────────────────────────────────────────────────────
    volumes:
      # Your domains file (edit this on host, tool reads it inside container)
      - ./domains.txt:/app/domains.txt:ro

      # Results saved here on your host machine
      - ./results:/app/results

      # Mount your own wordlists folder (optional — SecLists already inside image)
      # - /path/to/your/wordlists:/app/custom-wordlists:ro

    # ── Interactive mode (needed for yes/no confirmation prompt) ───────────
    stdin_open: true
    tty: true

    # ── Default command (override with: docker compose run ffuf-auto --domains ...) ─
    command: ["--help"]

    # ── Resource limits (optional safety) ─────────────────────────────────
    # deploy:
    #   resources:
    #     limits:
    #       cpus: "2"
    #       memory: "1g"