-
-
Save peteyan/2abb38b8335b03c05e292154d58722cb to your computer and use it in GitHub Desktop.
docker-compose selenium grid (w/healthcheck)
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
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