Last active
September 16, 2024 09:51
-
-
Save bjongbloedt/14c18a74f150c6474671b9a8a9899921 to your computer and use it in GitHub Desktop.
docker-compose selenium grid (w/healthcheck)
This file contains hidden or 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
| version: "3" | |
| services: | |
| hub: | |
| image: selenium/hub | |
| ports: | |
| - "4444:4444" | |
| healthcheck: | |
| test: ["CMD", "wget", "--spider", "http://localhost:4444/grid/api/proxy"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 3 | |
| firefox: | |
| image: selenium/node-firefox | |
| depends_on: | |
| - hub | |
| environment: | |
| HUB_PORT_4444_TCP_ADDR: hub | |
| HUB_PORT_4444_TCP_PORT: 4444 | |
| healthcheck: | |
| test: ["CMD", "wget", "--spider", "http://localhost:5555"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 3 | |
| chrome: | |
| image: selenium/node-chrome | |
| depends_on: | |
| - hub | |
| environment: | |
| HUB_PORT_4444_TCP_ADDR: hub | |
| HUB_PORT_4444_TCP_PORT: 4444 | |
| healthcheck: | |
| test: ["CMD", "wget", "--spider", "http://localhost:5555"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Possibly better to pipe the JSON from Selenium endpoints to
jqto filter actual health indication such asreadyfor Selenium Hub oravailabilityfor Selenium Node.