From d41add522d5dc5942459c21651babf656a416990 Mon Sep 17 00:00:00 2001 From: "Sergio C. Orozco Torres" Date: Sat, 22 Jun 2024 17:19:01 +0000 Subject: [PATCH] Network Mode host no compatible ports binding --- .devcontainer/testing/devcontainer.json | 3 ++- compose.yaml | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.devcontainer/testing/devcontainer.json b/.devcontainer/testing/devcontainer.json index 6daa16b0..40bb7dff 100644 --- a/.devcontainer/testing/devcontainer.json +++ b/.devcontainer/testing/devcontainer.json @@ -16,7 +16,8 @@ }, "forwardPorts": [4444, 5000, 7900], "remoteEnv": { - "TEST_COMMAND_EXECUTOR": "http://localhost:4444/wd/hub" + "TEST_COMMAND_EXECUTOR": "http://localhost:4444/wd/hub", + "PYTEST_BASE_URL": "http://localhost:5000" }, "customizations": { "codespaces": { diff --git a/compose.yaml b/compose.yaml index e071364c..9e89f299 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,8 +2,4 @@ services: browser: image: selenium/standalone-${TEST_BROWSER:-chrome} shm_size: '2gb' - ports: - - 4444:4444 # Selenium service - - 5900:5900 # VNC server - - 7900:7900 # VNC browser client network_mode: "host"