mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
36 lines
726 B
YAML
36 lines
726 B
YAML
#
|
|
# https://github.com/SeleniumHQ/docker-selenium/blob/trunk/docker-compose-v3.yml
|
|
#
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
hub:
|
|
image: selenium/hub:4
|
|
ports:
|
|
- "4442:4442"
|
|
- "4443:4443"
|
|
- "4444:4444"
|
|
restart: unless-stopped
|
|
|
|
chrome:
|
|
image: selenium/node-chrome:4
|
|
ports:
|
|
- "5900:5900"
|
|
- "7900:7900"
|
|
environment:
|
|
- SE_EVENT_BUS_HOST=hub
|
|
- SE_EVENT_BUS_PUBLISH_PORT=4442
|
|
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
|
|
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
|
|
- SE_NODE_MAX_SESSIONS=4
|
|
- SE_NODE_SESSION_TIMEOUT=180
|
|
- START_XVFB=true
|
|
- VNC_NO_PASSWORD=1
|
|
- VNC_VIEW_ONLY=1
|
|
shm_size: 2gb
|
|
depends_on:
|
|
- hub
|
|
restart: unless-stopped
|