Skip to content

Commit

Permalink
Updated docker compose for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
thananauto committed Dec 11, 2023
1 parent b7811f1 commit f053e74
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions docker-compose-v3-grid.yml
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

0 comments on commit f053e74

Please sign in to comment.