feat: split honeypot and dashboard into separate services on dedicated ports
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
- Honeypot listens on port 5010 - Dashboard listens on port 5123 at URL / - Add app_dashboard.py as standalone FastAPI app - Add start.sh to launch both uvicorn processes - Fix dashboard_path computation to return "" at root (avoid double-slash URLs) - Update Dockerfile, docker-compose.yaml, config.yaml, config.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17
start.sh
Executable file
17
start.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
HONEYPOT_PORT=${HONEYPOT_PORT:-5010}
|
||||
DASHBOARD_PORT=${DASHBOARD_PORT:-5123}
|
||||
|
||||
echo "Starting Krawl honeypot on port $HONEYPOT_PORT..."
|
||||
uvicorn app:app --host 0.0.0.0 --port "$HONEYPOT_PORT" --app-dir src &
|
||||
HONEYPOT_PID=$!
|
||||
|
||||
echo "Starting Krawl dashboard on port $DASHBOARD_PORT..."
|
||||
uvicorn app_dashboard:app --host 0.0.0.0 --port "$DASHBOARD_PORT" --app-dir src &
|
||||
DASHBOARD_PID=$!
|
||||
|
||||
# Wait for either process to exit; if one dies, kill the other
|
||||
wait -n 2>/dev/null || wait
|
||||
kill $HONEYPOT_PID $DASHBOARD_PID 2>/dev/null || true
|
||||
Reference in New Issue
Block a user