File size: 616 Bytes
f9f77ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Official Selenium standalone with Chrome + Firefox and noVNC
FROM selenium/standalone-docker:latest

# Set timezone for consistency
ENV TZ=UTC

# Grid & Node config
ENV SE_EVENT_BUS_HOST=localhost
ENV SE_EVENT_BUS_PUBLISH_PORT=4442
ENV SE_EVENT_BUS_SUBSCRIBE_PORT=4443
ENV SE_NODE_MAX_SESSIONS=5
ENV SE_NODE_SESSION_TIMEOUT=300

# Enable noVNC for direct browser control
ENV SE_VNC_NO_PASSWORD=1
ENV SE_SCREEN_WIDTH=1920
ENV SE_SCREEN_HEIGHT=1080
ENV SE_SCREEN_DEPTH=24

# Expose WebDriver and VNC/noVNC ports
EXPOSE 4444 7900 5900

# Default CMD runs Selenium Grid (hub + nodes + VNC)
CMD ["selenium-standalone"]