-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7811f1
commit f053e74
Showing
1 changed file
with
30 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,64 @@ | ||
version: "3.5" | ||
#If version is not mentioned means docker-compose will automatically consider during run time | ||
services: | ||
chrome: | ||
image: selenium/node-chrome:4.9.0-20230421 | ||
container_name: node-chrome | ||
shm_size: 2gb | ||
depends_on: | ||
- selenium-hub | ||
selenium-hub: | ||
condition: service_healthy | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
edge: | ||
image: selenium/node-edge:4.9.0-20230421 | ||
container_name: node-edge | ||
shm_size: 2gb | ||
depends_on: | ||
- selenium-hub | ||
selenium-hub: | ||
condition: service_healthy | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
firefox: | ||
image: selenium/node-firefox:4.9.0-20230421 | ||
container_name: node-firefox | ||
shm_size: 2gb | ||
depends_on: | ||
- selenium-hub | ||
selenium-hub: | ||
condition: service_healthy | ||
|
||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-hub | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
networks: | ||
- grid | ||
|
||
selenium-hub: | ||
image: selenium/hub:4.9.0-20230421 | ||
container_name: selenium-hub | ||
ports: | ||
- "4442:4442" | ||
- "4443:4443" | ||
- "4444:4444" | ||
- "4444:4444" | ||
networks: | ||
- grid | ||
healthcheck: | ||
test: curl --fail http://localhost:4444 || exit 1 | ||
interval: 5s | ||
timeout: 10s | ||
retries: 5 | ||
|
||
networks: | ||
grid: | ||
driver: bridge | ||
name: grid-driver |