Skip to content

Commit

Permalink
Update README.md (#724)
Browse files Browse the repository at this point in the history
* Update README.md

just incase users are using docker-compose version 3; delineated between version 2 and 3

* Update README.md

I've updated to comments to read for yaml, changing variables HUB_HOST and HUB_PORT haven't been tested by me on my side.  I can confirm these settings work.

* Update README.md

updated the variables - had to test they didn't break the dockers
  • Loading branch information
MacCracken authored and diemol committed Apr 16, 2018
1 parent 20995d2 commit aae1601
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ $ docker network rm grid
The most simple way to start a grid is with [docker-compose](https://docs.docker.com/compose/overview/), use the following
snippet as your `docker-compose.yaml`, save it locally and in the same folder run `docker-compose up`.

##### Version 2
```yaml
# To execute this docker-compose yml file use docker-compose -f <file_name> up
# Add the "-d" flag at the end for deattached execution
Expand Down Expand Up @@ -114,7 +115,34 @@ services:
image: selenium/hub:3.11.0-californium
ports:
- "4444:4444"
```
```

##### Version 3
```yaml
# To execute this docker-compose yml file use docker-compose -f <file_name> up
# Add the "-d" flag at the end for deattached execution
version: "3"
services:
selenium-hub:
image: selenium/hub:3.11.0-californium
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.11.0-californium
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
firefox:
image: selenium/node-firefox:3.11.0-californium
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
```

To stop the grid and cleanup the created containers, run `docker-compose down`.

Expand Down

0 comments on commit aae1601

Please sign in to comment.