Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation on starting up grid (#1268)
* add Swarm full grid setup * Remove /wd/hub endpoint reference
- Loading branch information
1 parent
653c863
commit 8ba7474
Showing
2 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 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.0.0-beta-3-prerelease-20210422 | ||
volumes: | ||
- /dev/shm:/dev/shm | ||
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.0.0-beta-3-prerelease-20210422 | ||
volumes: | ||
- /dev/shm:/dev/shm | ||
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.0.0-beta-3-prerelease-20210422 | ||
volumes: | ||
- /dev/shm:/dev/shm | ||
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' | ||
|
||
opera: | ||
image: selenium/node-opera:4.0.0-beta-3-prerelease-20210422 | ||
volumes: | ||
- /dev/shm:/dev/shm | ||
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.0.0-beta-3-prerelease-20210422 | ||
ports: | ||
- "4442:4442" | ||
- "4443:4443" | ||
- "4444:4444" |