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

- 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:
2026-03-19 20:16:35 +01:00
parent a0700d1960
commit 50a20734ff
9 changed files with 139 additions and 52 deletions

View File

@@ -15,16 +15,18 @@ RUN pip install --no-cache-dir --upgrade pip && \
COPY src/ /app/src/
COPY wordlists.json /app/
COPY entrypoint.sh /app/
COPY start.sh /app/
COPY config.yaml /app/
RUN useradd -m -u 1000 krawl && \
mkdir -p /app/logs /app/data /app/exports && \
chown -R krawl:krawl /app && \
chmod +x /app/entrypoint.sh
chmod +x /app/entrypoint.sh /app/start.sh
EXPOSE 5000
EXPOSE 5010
EXPOSE 5123
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000", "--app-dir", "src"]
CMD ["/app/start.sh"]