- Add YAML-based configuration loaded from config.yaml (CONFIG_LOCATION env var) - Add PyYAML dependency and install requirements in Dockerfile - Replace Config.from_env() with get_config() singleton pattern - Remove server_header from config (now randomized from wordlists only) - Update docker-compose.yaml to mount config.yaml read-only - Update Helm chart: restructure values.yaml, generate config.yaml in ConfigMap - Update Kubernetes manifests: ConfigMap now contains config.yaml, deployments mount it - Remove Helm secret.yaml (dashboard path now auto-generated in config.yaml)
23 lines
531 B
YAML
23 lines
531 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
krawl:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: krawl-server
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- ./wordlists.json:/app/wordlists.json:ro
|
|
- ./config.yaml:/app/config.yaml:ro
|
|
environment:
|
|
- CONFIG_LOCATION=config.yaml
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "python3", "-c", "import requests; requests.get('http://localhost:5000')"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|