mirror of
https://github.com/SeleniumHQ/docker-selenium.git
synced 2024-02-23 15:49:32 +03:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
# To start Docker in Swarm mode, you need to run `docker swarm init`
|
|
# To deploy the Grid, `docker stack deploy -c docker-compose-v3-swarm.yml grid`
|
|
# Stop with `docker stack rm grid`
|
|
# Stop swarm mode `docker swarm leave --force`
|
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
chrome:
|
|
image: selenium/node-chrome:4.8.3-20230328
|
|
shm_size: 2gb
|
|
environment:
|
|
- SE_EVENT_BUS_HOST=selenium-hub
|
|
- SE_EVENT_BUS_PUBLISH_PORT=4442
|
|
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
|
|
deploy:
|
|
replicas: 1
|
|
entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh'
|
|
|
|
edge:
|
|
image: selenium/node-edge:4.8.3-20230328
|
|
shm_size: 2gb
|
|
environment:
|
|
- SE_EVENT_BUS_HOST=selenium-hub
|
|
- SE_EVENT_BUS_PUBLISH_PORT=4442
|
|
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
|
|
deploy:
|
|
replicas: 1
|
|
entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh'
|
|
|
|
firefox:
|
|
image: selenium/node-firefox:4.8.3-20230328
|
|
shm_size: 2gb
|
|
environment:
|
|
- SE_EVENT_BUS_HOST=selenium-hub
|
|
- SE_EVENT_BUS_PUBLISH_PORT=4442
|
|
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
|
|
deploy:
|
|
replicas: 1
|
|
entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh'
|
|
|
|
selenium-hub:
|
|
image: selenium/hub:4.8.3-20230328
|
|
ports:
|
|
- "4442:4442"
|
|
- "4443:4443"
|
|
- "4444:4444"
|