Skip to content

Configuration

All configuration is done via environment variables in the .env file next to docker-compose.yml.

VariableDefaultDescription
RAYOBROWSE_PORT9222Host port mapped to the container

Changes require a container restart:

Terminal window
docker compose up -d

Request VNC per browser by passing vnc=true to /connect:

Terminal window
curl -i "http://localhost:9222/connect?headless=false&os=windows&vnc=true"

The response includes an x-vnc-url header. It will look like:

x-vnc-url: http://localhost:6080/vnc.html?path=vnc/<session-id>&token=<token>

Examples and SDKs can read these variables:

VariableUsed byDescription
RAYOBYTE_ENDPOINTExamples and SDKsHTTP(S) endpoint (default: http://localhost:9222; cloud: https://cloud.rayobrowse.com)
RAYOBYTE_API_KEYExamples and SDKsAPI key for rayobrowse Cloud

The rayobrowse container requires:

  • Shared memory: 2GB (shm_size: 2g in docker-compose.yml)
  • RAM: ~300MB per browser instance
  • Security option: seccomp=unconfined (for Chrome sandbox)