# Selenium Standalone Configuration

# Image Registry (optional)
# GLOBAL_REGISTRY=

# Selenium Version (stable version tag recommended)
# Visit https://hub.docker.com/r/selenium/standalone-chrome/tags for available versions
# Format: <browser-version>-<date> or <browser-version>-chromedriver-<driver-version>-grid-<grid-version>-<date>
SELENIUM_VERSION=144.0-20260120

# Shared Memory Size (required for browser stability)
# Chrome and Firefox need sufficient shared memory to prevent crashes
SELENIUM_SHM_SIZE=2g

# Port Configuration
# Selenium Grid HTTP port
SELENIUM_GRID_PORT_OVERRIDE=4444
# VNC port for viewing browser sessions (browser debugger)
SELENIUM_VNC_PORT_OVERRIDE=7900

# Timezone
TZ=UTC

# Screen Resolution Settings
SE_SCREEN_WIDTH=1920
SE_SCREEN_HEIGHT=1080
SE_SCREEN_DEPTH=24
SE_SCREEN_DPI=96

# VNC Configuration
# Password for VNC access (default: secret)
SE_VNC_PASSWORD=secret

# Session Configuration
# Maximum concurrent sessions per container
SE_NODE_MAX_SESSIONS=1
# Session timeout in seconds (default: 300)
SE_NODE_SESSION_TIMEOUT=300

# Xvfb Configuration
# Start virtual display server (required for headless mode in Chrome/Chromium v127+)
SE_START_XVFB=true

# Resource Limits
SELENIUM_CPU_LIMIT=2.0
SELENIUM_MEMORY_LIMIT=2G
SELENIUM_CPU_RESERVATION=1.0
SELENIUM_MEMORY_RESERVATION=1G
