Browserless provides headless Chrome instances for the browser automation tools. It runs as a separate container in your Docker Compose setup.
Setup
Browserless is included in the default Docker Compose configuration:
browserless:
image: ghcr.io/browserless/chromium:v2.57.2
ports:
- "3333:3333"
environment:
MAX_CONCURRENT_SESSIONS: 10
TIMEOUT: 1800000Connect it to the engine with:
browser:
ws_url: ws://browserless:3333Environment variables
| Variable | Default | Description |
|---|---|---|
MAX_CONCURRENT_SESSIONS | 10 | Maximum simultaneous browser sessions |
TIMEOUT | 1800000 | Session timeout in milliseconds (30 min) |
Authenticated sessions
If Browserless is configured with TOKEN, set Frona's browser.api_token to the same value (or use FRONA_BROWSER_API_TOKEN). Frona uses it for browser connections, management requests, and the debugger proxy:
browser:
ws_url: ws://browserless:3333
api_token: ${BROWSERLESS_TOKEN}Make BROWSERLESS_TOKEN available to the Frona process. An explicit token takes precedence over a token query parameter in ws_url; other URL query parameters are preserved. Without an explicit token, management requests use frona as a compatibility fallback, not as a configured Browserless secret.
Browser takeover opens through Frona's authenticated debugger proxy. The user must have access to the browser profile; Browserless does not need a public port for takeover. See browser automation.
Resource planning
Each browser session uses roughly 200-500 MB of RAM, depending on the complexity of the pages being loaded. Plan your MAX_CONCURRENT_SESSIONS accordingly:
- A server with 8 GB RAM can comfortably run 5-10 sessions
- For heavy browser automation workloads, allocate more RAM
Security
Browserless should not be exposed to the public internet. Keep it on an internal network accessible only to the Frona engine. The Docker Compose default configuration only exposes the port to the host for debugging purposes.
In production, remove the port mapping:
browserless:
image: ghcr.io/browserless/chromium:v2.57.2
# No ports: section. Only accessible to other containers
environment:
MAX_CONCURRENT_SESSIONS: 10
TIMEOUT: 1800000