forked from GreyDGL/PentestGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.65 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
pentestgpt:
container_name: pentestgpt
image: pentestgpt:latest
build:
context: .
dockerfile: Dockerfile
volumes:
# Mount workspace for file operations
- ./workspace:/workspace
# Persist Claude Code configuration across container restarts
- claude-config:/home/pentester/.claude
# Persist CCR configuration
- ccr-config:/home/pentester/.claude-code-router
stdin_open: true
tty: true
# Required for OpenVPN (HackTheBox/TryHackMe connectivity)
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
# Use host network for easy access to benchmark containers
extra_hosts:
- "host.docker.internal:host-gateway"
# Resource allocation - adjust based on your system
# More CPUs and memory improve performance for complex tasks
deploy:
resources:
limits:
cpus: '4' # Max 4 CPU cores (adjust higher if available)
memory: 8G # Max 8GB RAM
reservations:
cpus: '2' # Guarantee 2 CPU cores
memory: 4G # Guarantee 4GB RAM
environment:
# Terminal settings for proper TUI rendering
- TERM=xterm-256color
# Python settings
- PYTHONUNBUFFERED=1
# Auth mode: "openrouter", "anthropic", or "manual"
- PENTESTGPT_AUTH_MODE=${PENTESTGPT_AUTH_MODE:-manual}
# API keys (set based on auth mode via .env.auth)
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
volumes:
# Named volume for Claude Code config persistence
claude-config:
# Named volume for CCR config persistence
ccr-config: