2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 22:39:25 +01:00
This commit is contained in:
kev
2021-09-16 15:46:38 +08:00
parent b336b80910
commit 58fdc8441f
4 changed files with 54 additions and 28 deletions

View File

@@ -6,8 +6,6 @@ services:
image: selenium/hub:3.141.59
ports:
- "4444:4444"
volumes:
- /dev/shm:/dev/shm
environment:
- JAVA_OPTS=-Xmx512m
- GRID_TIMEOUT=60

View File

@@ -1,13 +1,16 @@
chrome:
image: selenium/node-chrome:3.141.59
ports:
- "5555:5555"
volumes:
- /dev/shm:/dev/shm
environment:
- HUB_HOST=10.0.0.21
- HUB_PORT=4444
- REMOTE_HOST=http://10.0.0.22:5555
- NODE_MAX_INSTANCES=2
- NODE_MAX_SESSION=2
restart: unless-stopped
version: '3.8'
services:
chrome:
image: selenium/node-chrome:3.141.59
ports:
- "5555:5555"
environment:
- HUB_HOST=10.0.0.21
- HUB_PORT=4444
- REMOTE_HOST=http://10.0.0.22:5555
- NODE_MAX_INSTANCES=2
- NODE_MAX_SESSION=2
shm_size: 2gb
restart: unless-stopped