Files
krawl.es/docker-compose.yaml
Malin 50a20734ff
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
feat: split honeypot and dashboard into separate services on dedicated ports
- 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>
2026-03-19 20:16:35 +01:00

35 lines
956 B
YAML

---
services:
krawl:
build:
context: .
dockerfile: Dockerfile
container_name: krawl-server
ports:
- "5010:5010" # Honeypot (crawler trap)
- "5123:5123" # Dashboard (public UI)
environment:
- CONFIG_LOCATION=config.yaml
# Uncomment to set a custom dashboard password (auto-generated if not set)
# - KRAWL_DASHBOARD_PASSWORD=your-secret-password
# Override ports if needed
# - HONEYPOT_PORT=5010
# - DASHBOARD_PORT=5123
# - TZ=${TZ}
volumes:
- ./wordlists.json:/app/wordlists.json:ro
- ./config.yaml:/app/config.yaml:ro
- ./logs:/app/logs
- ./exports:/app/exports
- ./data:/app/data
- ./backups:/app/backups
restart: unless-stopped
develop:
watch:
- path: ./Dockerfile
action: rebuild
- path: ./src/
action: rebuild
- path: ./docker-compose.yaml
action: rebuild