# Harpia: o scanner varre os alvos autorizados e grava lotes imutáveis; # o harpia ingere os lotes, calcula diffs e serve a API e o dashboard. # # cp .env.example .env && cp examples/harpia.toml config/harpia.toml # docker compose pull && docker compose up -d # operadores: imagem publicada # docker compose up -d --build # desenvolvedores: build local name: harpia services: scanner: image: ${HARPIA_IMAGE:-git.lucasrguerra.dev.br/ciberfauna/harpia}:${HARPIA_VERSION:-latest} command: ["scanner", "--config", "/config/harpia.toml", "--out", "/data/sweeps"] network_mode: host user: "0:0" # root sem nenhuma capability além de NET_RAW cap_drop: [ALL] cap_add: [NET_RAW] read_only: true tmpfs: - /tmp security_opt: - no-new-privileges:true volumes: - ./config:/config:ro - harpia-sweeps:/data/sweeps restart: unless-stopped harpia: image: ${HARPIA_IMAGE:-git.lucasrguerra.dev.br/ciberfauna/harpia}:${HARPIA_VERSION:-latest} build: . command: ["serve", "--bind", "0.0.0.0:8788", "--config", "/config/harpia.toml", "--sweeps", "/data/sweeps", "--data-dir", "/data/harpia"] environment: # Empty: a token is generated at each start and printed in `docker compose logs harpia`. HARPIA_ADMIN_TOKEN: ${HARPIA_ADMIN_TOKEN:-} # Signing key for a [[webhook]] with segredo_env = "HARPIA_WEBHOOK_KEY". HARPIA_WEBHOOK_KEY: ${HARPIA_WEBHOOK_KEY:-} ports: - "${HARPIA_PUBLISH:-127.0.0.1:8788}:8788" volumes: - ./config:/config:ro - harpia-sweeps:/data/sweeps:ro - harpia-data:/data/harpia read_only: true tmpfs: - /tmp cap_drop: [ALL] security_opt: - no-new-privileges:true restart: unless-stopped volumes: harpia-sweeps: harpia-data: