-
Notifications
You must be signed in to change notification settings - Fork 455
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (34 loc) · 1.63 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
36 lines (34 loc) · 1.63 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
# =============================================================================
# RedAmon - Development Overrides
# =============================================================================
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# =============================================================================
# Swaps the production webapp build for a dev container with Next.js fast
# refresh. Source code is volume-mounted so every save is reflected instantly.
# =============================================================================
services:
webapp:
build: !reset null
image: node:22-alpine
working_dir: /app
# Dev override: `next dev --turbopack` compiles on-demand and needs FAR more
# memory than the prod `next start`. The base service's 1g memory-governor cap
# would starve/kill the dev compiler ("Failed to fetch" / never compiles), so
# relax it generously here. This only affects `up dev`.
mem_limit: ${WEBAPP_DEV_MEM:-4g}
command: sh -c "npm install && npx prisma db push --accept-data-loss && npm run dev"
volumes:
- ./webapp:/app
- webapp_node_modules:/app/node_modules
- webapp_next_cache:/app/.next
- ./recon/output:/data/recon-output:ro
- ./recon/wordlists:/data/recon-wordlists:rw
- ./mcp/nuclei-templates:/data/nuclei-templates:rw
- ./gvm_scan/output:/data/gvm-output:ro
- ./github_secret_hunt/output:/data/github-hunt-output:ro
- ./VERSION:/app/VERSION:ro
- js_recon_uploads:/data/js-recon-uploads
- js_recon_custom:/data/js-recon-custom
volumes:
webapp_node_modules:
webapp_next_cache: