mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-05 18:44:48 +01:00
- docker-compose.yml: PostgreSQL 16, neurosploit app, kali-worker - Dockerfile: multi-stage Rust build + Node runtime - Dockerfile.kali: kalilinux/kali-rolling with full pentest toolbox - install.sh: auto-generate credentials, build images, start services - db/schema.sql: PostgreSQL schema for runs, findings, auth Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
91 lines
2.8 KiB
YAML
91 lines
2.8 KiB
YAML
# NeuroSploit — Docker Compose infrastructure
|
|
# Usage: cp .env.example .env && ./install.sh && docker compose up -d
|
|
#
|
|
# Services:
|
|
# postgres — persistent storage (findings, runs, assets, skills)
|
|
# neurosploit — web console + API + harness orchestrator
|
|
# kali-worker — isolated Kali container for running tools (nmap, sqlmap, ffuf, nuclei…)
|
|
|
|
x-logging: &default-logging
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-neurosploit}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
|
|
POSTGRES_DB: ${POSTGRES_DB:-neurosploit}
|
|
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
- ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-neurosploit} -d ${POSTGRES_DB:-neurosploit}"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
logging: *default-logging
|
|
restart: unless-stopped
|
|
|
|
neurosploit:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
NS_PG_HOST: postgres
|
|
NS_PG_PORT: "5432"
|
|
NS_PG_USER: ${POSTGRES_USER:-neurosploit}
|
|
NS_PG_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
|
|
NS_PG_DBNAME: ${POSTGRES_DB:-neurosploit}
|
|
NS_PG_SSLMODE: disable
|
|
# LLM providers
|
|
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
|
|
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
|
|
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY:-}
|
|
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
|
|
XAI_API_KEY: ${XAI_API_KEY:-}
|
|
GROQ_API_KEY: ${GROQ_API_KEY:-}
|
|
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
|
|
# Auth
|
|
NS_JWT_SECRET: ${NS_JWT_SECRET:?Set NS_JWT_SECRET in .env}
|
|
NS_DEFAULT_USER: ${NS_DEFAULT_USER:-neurosploit}
|
|
NS_DEFAULT_PASSWORD: ${NS_DEFAULT_PASSWORD:-}
|
|
# Worker
|
|
NS_WORKER_IMAGE: neurosploit-kali:local
|
|
NS_SANDBOX: ${NS_SANDBOX:-required}
|
|
ports:
|
|
- "${NS_BIND_ADDR:-127.0.0.1}:${NS_PORT:-8787}:8787"
|
|
volumes:
|
|
- ./runs:/app/runs
|
|
- ./agents_md:/app/agents_md:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
networks:
|
|
- default
|
|
security_opt:
|
|
- "no-new-privileges:true"
|
|
logging: *default-logging
|
|
restart: unless-stopped
|
|
|
|
kali-worker:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.kali
|
|
image: neurosploit-kali:local
|
|
# Not started directly — the harness creates per-task instances.
|
|
# This service only builds the image so it's ready for `docker run`.
|
|
profiles:
|
|
- build-only
|
|
logging: *default-logging
|
|
|
|
volumes:
|
|
pgdata:
|