mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-21 22:33:23 +02:00
update selenium
This commit is contained in:
parent
ce13e7bf65
commit
34e7e4ea54
@ -1,40 +1,21 @@
|
|||||||
|
#
|
||||||
|
# https://github.com/SeleniumHQ/docker-selenium/blob/trunk/docker-compose-v3-swarm.yml
|
||||||
|
#
|
||||||
|
# cluster:
|
||||||
|
# - manger: 1 (4vCPU, 4GiB MEM)
|
||||||
|
# - worker: 10 (8vCPU, 8GiB MEM)
|
||||||
|
#
|
||||||
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
hub:
|
hub:
|
||||||
image: selenium/hub:3.141.59
|
image: selenium/hub:4
|
||||||
ports:
|
ports:
|
||||||
|
- "4442:4442"
|
||||||
|
- "4443:4443"
|
||||||
- "4444:4444"
|
- "4444:4444"
|
||||||
volumes:
|
|
||||||
- /dev/shm:/dev/shm
|
|
||||||
environment:
|
|
||||||
- JAVA_OPTS=-Xmx2g
|
|
||||||
- GRID_TIMEOUT=200
|
|
||||||
- GRID_BROWSER_TIMEOUT=180
|
|
||||||
- GRID_CLEAN_UP_CYCLE=5000
|
|
||||||
- GRID_MAX_SESSION=9999
|
|
||||||
deploy:
|
|
||||||
replicas: 1
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.role == manager
|
|
||||||
restart_policy:
|
|
||||||
condition: on-failure
|
|
||||||
|
|
||||||
firefox:
|
|
||||||
image: selenium/node-firefox:3.141.59
|
|
||||||
entrypoint: bash -c 'REMOTE_HOST=http://$$HOSTNAME:5555 /opt/bin/entry_point.sh'
|
|
||||||
volumes:
|
|
||||||
- /dev/shm:/dev/shm
|
|
||||||
environment:
|
|
||||||
- HUB_HOST=hub
|
|
||||||
- HUB_PORT=4444
|
|
||||||
- NODE_MAX_INSTANCES=4
|
|
||||||
- NODE_MAX_SESSION=4
|
|
||||||
- NODE_UNREGISTER_IF_STILL_DOWN_AFTER=30000
|
|
||||||
depends_on:
|
|
||||||
- hub
|
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
placement:
|
placement:
|
||||||
@ -44,21 +25,27 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
chrome:
|
chrome:
|
||||||
image: selenium/node-chrome:3.141.59
|
image: selenium/node-chrome:4
|
||||||
entrypoint: bash -c 'REMOTE_HOST=http://$$HOSTNAME:5555 /opt/bin/entry_point.sh'
|
entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh'
|
||||||
volumes:
|
volumes:
|
||||||
- /dev/shm:/dev/shm
|
- type: tmpfs
|
||||||
|
target: /dev/shm
|
||||||
|
tmpfs:
|
||||||
|
size: 2147483648 # numfmt --from=iec 2G
|
||||||
environment:
|
environment:
|
||||||
- HUB_HOST=hub
|
- SE_EVENT_BUS_HOST=hub
|
||||||
- HUB_PORT=4444
|
- SE_EVENT_BUS_PUBLISH_PORT=4442
|
||||||
- NODE_MAX_INSTANCES=8
|
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
|
||||||
- NODE_MAX_SESSION=8
|
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
|
||||||
- NODE_UNREGISTER_IF_STILL_DOWN_AFTER=30000
|
- SE_NODE_MAX_SESSIONS=8
|
||||||
|
- SE_NODE_SESSION_TIMEOUT=180
|
||||||
|
- START_XVFB=true
|
||||||
depends_on:
|
depends_on:
|
||||||
- hub
|
- hub
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 8
|
replicas: 10
|
||||||
placement:
|
placement:
|
||||||
|
max_replicas_per_node: 1
|
||||||
constraints:
|
constraints:
|
||||||
- node.role == worker
|
- node.role == worker
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user