1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/selenium/docker-stack.yml

72 lines
1.5 KiB
YAML
Raw Normal View History

2021-05-28 10:16:06 +02:00
version: '3.8'
2019-11-03 06:01:33 +02:00
2019-06-26 23:15:23 +02:00
services:
2019-11-03 06:01:33 +02:00
2019-06-26 23:15:23 +02:00
hub:
2021-05-28 10:16:06 +02:00
image: selenium/hub:3.141.59
2019-06-26 23:15:23 +02:00
ports:
- "4444:4444"
volumes:
- /dev/shm:/dev/shm
environment:
2019-08-04 07:04:08 +02:00
- JAVA_OPTS=-Xmx2g
- GRID_TIMEOUT=200
- GRID_BROWSER_TIMEOUT=180
- GRID_CLEAN_UP_CYCLE=5000
- GRID_MAX_SESSION=9999
2019-06-26 23:15:23 +02:00
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
2019-11-03 06:01:33 +02:00
2019-08-04 07:04:08 +02:00
firefox:
2021-05-28 10:16:06 +02:00
image: selenium/node-firefox:3.141.59
2019-08-04 07:04:08 +02:00
entrypoint: bash -c 'REMOTE_HOST=http://$$HOSTNAME:5555 /opt/bin/entry_point.sh'
2019-06-26 23:15:23 +02:00
volumes:
- /dev/shm:/dev/shm
environment:
- HUB_HOST=hub
- HUB_PORT=4444
- NODE_MAX_INSTANCES=4
- NODE_MAX_SESSION=4
2019-08-04 07:04:08 +02:00
- NODE_UNREGISTER_IF_STILL_DOWN_AFTER=30000
depends_on:
- hub
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
2019-11-03 06:01:33 +02:00
2019-08-04 07:04:08 +02:00
chrome:
2021-05-28 10:16:06 +02:00
image: selenium/node-chrome:3.141.59
2019-08-04 07:04:08 +02:00
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=8
- NODE_MAX_SESSION=8
- NODE_UNREGISTER_IF_STILL_DOWN_AFTER=30000
2019-06-26 23:15:23 +02:00
depends_on:
- hub
deploy:
replicas: 8
placement:
constraints:
- node.role == worker
restart_policy:
condition: on-failure
2019-11-03 06:01:33 +02:00
2019-06-26 23:15:23 +02:00
networks:
default:
ipam:
config:
2019-08-04 07:04:08 +02:00
- subnet: 192.168.100.0/24