Last updated: 2026-07-18 09:34 UTC

Add StyloBot to a Docker Compose stack

You already run your app with Docker Compose. Add StyloBot as a service in front of your app container so automation is filtered before it reaches you.

Add the service

services:
  stylobot:
    image: scottgal/stylobot-all:latest
    ports:
      - "8080:8080"
    environment:
      BotDetection__Upstream: "http://app:3000"
    depends_on:
      - app

  app:
    # your existing app service, unchanged
    build: .
    expose:
      - "3000"

Publish stylobot on your public port instead of app. Your app stops being directly reachable; StyloBot fronts it.

Configure it (FOSS: YAML/JSON)

Mount a config file or set BotDetection__* environment variables. Same policy model as every other path.

Or drive it from the dashboard (commercial)

Commercial adds the live dashboard editor with hot-reload. See plans.

Verify

docker compose up, browse your site, open the dashboard. Your traffic shows up live.