Skip to content

Instantly share code, notes, and snippets.

@peteyan
Forked from bjongbloedt/docker-compose.yml
Created July 27, 2023 05:55
Show Gist options
  • Save peteyan/2abb38b8335b03c05e292154d58722cb to your computer and use it in GitHub Desktop.
Save peteyan/2abb38b8335b03c05e292154d58722cb to your computer and use it in GitHub Desktop.
docker-compose selenium grid (w/healthcheck)
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