Skip to content

Commit 1832f49

Browse files
committed
chore: selenium grid changes
1 parent 3854636 commit 1832f49

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

grid/config.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ configs = [
66
"selenium/standalone-chrome:latest", "{\"browserName\": \"chrome\"}"
77
]
88

9+
host-config-keys = ["Binds"]
10+
911
# URL for connecting to the docker daemon
10-
# host.docker.internal works for macOS and Windows.
11-
# Linux could use --net=host in the `docker run` instruction or 172.17.0.1 in the URI below.
12-
# To have Docker listening through tcp on macOS, install socat and run the following command
13-
# socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
12+
# Most simple approach, leave it as http://127.0.0.1:2375, and mount /var/run/docker.sock.
13+
# 127.0.0.1 is used because internally the container uses socat when /var/run/docker.sock is mounted
14+
# If var/run/docker.sock is not mounted:
15+
# Windows: make sure Docker Desktop exposes the daemon via tcp, and use http://host.docker.internal:2375.
16+
# macOS: install socat and run the following command, socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock,
17+
# then use http://host.docker.internal:2375.
18+
# Linux: varies from machine to machine, please mount /var/run/docker.sock. If this does not work, please create an issue.
19+
1420
url = "http://host.docker.internal:2375"
1521
# Docker image used for video recording
1622
video-image = "selenium/video:latest"

grid/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
version: "3"
21
services:
32
node-docker:
43
image: selenium/node-docker:latest
54
volumes:
65
- ./assets:/opt/selenium/assets
76
- ./config.toml:/opt/bin/config.toml
7+
- ~/Downloads:/home/seluser/Downloads
8+
- /var/run/docker.sock:/var/run/docker.sock
89
depends_on:
910
- selenium-hub
1011
environment:
@@ -18,4 +19,4 @@ services:
1819
ports:
1920
- "4442:4442"
2021
- "4443:4443"
21-
- "4444:4444"
22+
- "4444:4444"

0 commit comments

Comments
 (0)