Skip to content

Standalone Docker Compose Deployment ​

Routewarden allows you to export and deploy the native real-time security dashboard as a standalone Docker Compose service without needing the rwarden binary installed on your production servers.


1. Export the Stack ​

Export the embedded configuration files to any target directory:

# 1. Export dashboard configuration to local directoryrwarden dashboard export ./dashboardcd ./dashboard# 2. Launch native SOC dashboard with Docker Composedocker compose up -d# 3. View live dashboard in browser# 👉 http://localhost:7890

2. Docker Compose Configuration ​

The exported docker-compose.yml runs Routewarden's native SOC dashboard consuming ~8MB of RAM with zero external dependencies:

docker-compose.ymlyaml
services:  dashboard:    image: ghcr.io/routewarden/cli:latest    container_name: routewarden-dashboard    restart: unless-stopped    command: dashboard --port 7890 --no-open    ports:      - "${PORT:-7890}:7890"    volumes:      # Mount Docker socket for automatic reverse proxy log discovery      - /var/run/docker.sock:/var/run/docker.sock:ro      # Persist SQLite telemetry database across container restarts      - routewarden-data:/root/.routewarden/dashboard    environment:      - TZ=UTCvolumes:  routewarden-data:    name: routewarden-dashboard-data

3. Distributed / Multi-Container Setup ​

For environments where proxy ingress logs originate across multiple microservice containers or edge instances, stream telemetry directly into the central dashboard:

docker-compose.ymlyaml
services:  # Central SOC Dashboard  dashboard:    image: ghcr.io/routewarden/cli:latest    container_name: routewarden-dashboard    restart: unless-stopped    command: dashboard --port 7890 --no-open    ports:      - "${PORT:-7890}:7890"    volumes:      - /var/run/docker.sock:/var/run/docker.sock:ro      - routewarden-data:/root/.routewarden/dashboard    environment:      - TZ=UTC  # Edge Node / Remote Proxy Streamer (Optional Companion)  streamer:    image: ghcr.io/routewarden/cli:latest    container_name: routewarden-streamer    restart: unless-stopped    command: monitor --raw --stream-to http://dashboard:7890 --agent-id edge-us-east    volumes:      - /var/run/docker.sock:/var/run/docker.sock:ro    depends_on:      - dashboardvolumes:  routewarden-data:

4. Telemetry Persistence & Storage ​

The native dashboard automatically initializes an embedded SQLite database (events.db) with Write-Ahead Logging (WAL) enabled:

  • Storage Location: Inside the container at /root/.routewarden/dashboard/events.db (persisted via the routewarden-data Docker volume).
  • Zero-Latency Ingestion: Asynchronous batch writes flushed every 200ms or 100 events.
  • 30-Day Auto-Pruning: Built-in pruning engine automatically removes events older than 30 days, capping disk usage to ~10–30 MB.
  • Restart Survival: On container restart, all historical metrics, threat classifications, and active attacker hotspots are preserved.

5. Environment Variables & Options ​

Variable / FlagDefaultDescription
PORT / --port7890Host port exposed for web UI, SSE streams, and REST API
TZUTCTimezone for log timestamps and reporting
GEOIP_DB / --geoip-dbAutoOptional path to custom MaxMind GeoLite2-City.mmdb or GeoLite2-Country.mmdb
--no-openfalseDisable automatic local browser launch (always set in Docker)

Released under the MIT License.