-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose file for reference [skip ci]
Signed-off-by: Viet Nguyen Duc <[email protected]>
- Loading branch information
Showing
12 changed files
with
163 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE IF NOT EXISTS sessions_map( | ||
session_ids varchar(256), | ||
session_caps text, | ||
session_uri varchar(256), | ||
session_stereotype text, | ||
session_start varchar(256) | ||
); |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# To execute this docker compose yml file use `docker compose -f docker-compose-v3-full-grid.yml up` | ||
# Add the `-d` flag at the end for detached execution | ||
# To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-v3-full-grid.yml down` | ||
version: "3" | ||
services: | ||
selenium-event-bus: | ||
image: selenium/event-bus:4.27.0-20241127 | ||
container_name: selenium-event-bus | ||
environment: | ||
- SE_ENABLE_TRACING=false | ||
ports: | ||
- "4442:4442" | ||
- "4443:4443" | ||
- "5557:5557" | ||
|
||
selenium-sessions: | ||
image: selenium/sessions:4.27.0-20241127 | ||
container_name: selenium-sessions | ||
ports: | ||
- "5556:5556" | ||
depends_on: | ||
- selenium-event-bus | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-event-bus | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
- SE_ENABLE_TRACING=false | ||
- SE_SESSIONS_MAP_EXTERNAL_DATASTORE=true | ||
- SE_SESSIONS_MAP_EXTERNAL_IMPLEMENTATION=org.openqa.selenium.grid.sessionmap.jdbc.JdbcBackedSessionMap | ||
- SE_SESSIONS_MAP_EXTERNAL_JDBC_URL=jdbc:postgresql://postgresql:5432/selenium_sessions | ||
- SE_SESSIONS_MAP_EXTERNAL_JDBC_USER=seluser | ||
- SE_SESSIONS_MAP_EXTERNAL_JDBC_PASSWORD=seluser | ||
# Uncomment the following lines to use Redis as the external datastore | ||
# - SE_SESSIONS_MAP_EXTERNAL_SCHEME=redis | ||
# - SE_SESSIONS_MAP_EXTERNAL_IMPLEMENTATION=org.openqa.selenium.grid.sessionmap.redis.RedisBackedSessionMap | ||
# - SE_SESSIONS_MAP_EXTERNAL_HOSTNAME=redis | ||
# - SE_SESSIONS_MAP_EXTERNAL_PORT=6379 | ||
|
||
postgresql: | ||
image: postgres:latest | ||
restart: always | ||
environment: | ||
- POSTGRES_USER=seluser | ||
- POSTGRES_PASSWORD=seluser | ||
- POSTGRES_DB=selenium_sessions | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- ./Sessions/init.sql:/docker-entrypoint-initdb.d/init.sql | ||
|
||
redis: | ||
image: redis:latest | ||
restart: always | ||
ports: | ||
- "6379:6379" | ||
|
||
selenium-session-queue: | ||
image: selenium/session-queue:4.27.0-20241127 | ||
container_name: selenium-session-queue | ||
environment: | ||
- SE_ENABLE_TRACING=false | ||
ports: | ||
- "5559:5559" | ||
|
||
selenium-distributor: | ||
image: selenium/distributor:4.27.0-20241127 | ||
container_name: selenium-distributor | ||
ports: | ||
- "5553:5553" | ||
depends_on: | ||
- selenium-event-bus | ||
- selenium-sessions | ||
- selenium-session-queue | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-event-bus | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
- SE_SESSIONS_MAP_HOST=selenium-sessions | ||
- SE_SESSIONS_MAP_PORT=5556 | ||
- SE_SESSION_QUEUE_HOST=selenium-session-queue | ||
- SE_SESSION_QUEUE_PORT=5559 | ||
- SE_ENABLE_TRACING=false | ||
|
||
selenium-router: | ||
image: selenium/router:4.27.0-20241127 | ||
container_name: selenium-router | ||
ports: | ||
- "4444:4444" | ||
depends_on: | ||
- selenium-distributor | ||
- selenium-sessions | ||
- selenium-session-queue | ||
environment: | ||
- SE_DISTRIBUTOR_HOST=selenium-distributor | ||
- SE_DISTRIBUTOR_PORT=5553 | ||
- SE_SESSIONS_MAP_HOST=selenium-sessions | ||
- SE_SESSIONS_MAP_PORT=5556 | ||
- SE_SESSION_QUEUE_HOST=selenium-session-queue | ||
- SE_SESSION_QUEUE_PORT=5559 | ||
- SE_ENABLE_TRACING=false | ||
|
||
chrome: | ||
image: selenium/node-chrome:4.27.0-20241127 | ||
shm_size: 2gb | ||
depends_on: | ||
- selenium-event-bus | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-event-bus | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
- SE_ENABLE_TRACING=false | ||
|
||
edge: | ||
image: selenium/node-edge:4.27.0-20241127 | ||
shm_size: 2gb | ||
depends_on: | ||
- selenium-event-bus | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-event-bus | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
- SE_ENABLE_TRACING=false | ||
|
||
firefox: | ||
image: selenium/node-firefox:4.27.0-20241127 | ||
shm_size: 2gb | ||
depends_on: | ||
- selenium-event-bus | ||
environment: | ||
- SE_EVENT_BUS_HOST=selenium-event-bus | ||
- SE_EVENT_BUS_PUBLISH_PORT=4442 | ||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443 | ||
- SE_ENABLE_TRACING=false |
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
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