mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-21 23:33:31 +01:00
Using Selenium Hub to support different browsers
This commit is contained in:
parent
1ba43e5924
commit
4ac13431b3
8
.env
8
.env
@ -32,8 +32,12 @@ POSTGRESQL_IMAGE_TAG=16-alpine
|
||||
ELASTICSEARCH_IMAGE=elasticsearch
|
||||
ELASTICSEARCH_IMAGE_TAG=latest
|
||||
|
||||
WEBDRIVER_IMAGE=selenium/standalone-chrome
|
||||
WEBDRIVER_IMAGE_TAG=latest
|
||||
WEBDRIVER_IMAGE=selenium/hub
|
||||
WEBDRIVER_IMAGE_TAG=4.21.0
|
||||
WEBDRIVER_CHROME_IMAGE=selenium/node-chrome
|
||||
WEBDRIVER_CHROME_IMAGE_TAG=125.0
|
||||
WEBDRIVER_FIREFOX_IMAGE=selenium/node-firefox
|
||||
WEBDRIVER_FIREFOX_IMAGE_TAG=126.0
|
||||
|
||||
# Expose ports per service
|
||||
ZABBIX_SERVER_PORT=10051
|
||||
|
@ -1,18 +1,55 @@
|
||||
services:
|
||||
selenium:
|
||||
image: "${WEBDRIVER_IMAGE}:${WEBDRIVER_IMAGE_TAG}"
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
scale: 4
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
shm_size: "2gb"
|
||||
env_file:
|
||||
- path: ${ENV_VARS_DIRECTORY}/.env_selenium
|
||||
required: false
|
||||
- selenium
|
||||
- selenium-chrome
|
||||
- selenium-firefox
|
||||
networks:
|
||||
tools_frontend:
|
||||
aliases:
|
||||
- webdriver
|
||||
- selenium-hub
|
||||
- selenium
|
||||
|
||||
selenium-chrome:
|
||||
image: "${WEBDRIVER_CHROME_IMAGE}:${WEBDRIVER_CHROME_IMAGE_TAG}"
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
scale: 2
|
||||
depends_on:
|
||||
- selenium
|
||||
profiles:
|
||||
- selenium
|
||||
- selenium-chrome
|
||||
shm_size: "2gb"
|
||||
env_file:
|
||||
- path: ${ENV_VARS_DIRECTORY}/.env_selenium_chrome
|
||||
required: false
|
||||
environment:
|
||||
- SE_EVENT_BUS_HOST=selenium
|
||||
- SE_EVENT_BUS_PUBLISH_PORT=4442
|
||||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
|
||||
networks:
|
||||
tools_frontend:
|
||||
|
||||
selenium-firefox:
|
||||
image: "${WEBDRIVER_FIREFOX_IMAGE}:${WEBDRIVER_FIREFOX_IMAGE_TAG}"
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
scale: 2
|
||||
depends_on:
|
||||
- selenium
|
||||
profiles:
|
||||
- selenium
|
||||
- selenium-firefox
|
||||
shm_size: "2gb"
|
||||
env_file:
|
||||
- path: ${ENV_VARS_DIRECTORY}/.env_selenium_firefox
|
||||
required: false
|
||||
environment:
|
||||
- SE_EVENT_BUS_HOST=selenium
|
||||
- SE_EVENT_BUS_PUBLISH_PORT=4442
|
||||
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
|
||||
networks:
|
||||
tools_frontend:
|
||||
|
@ -77,8 +77,7 @@ services:
|
||||
restart: "${RESTART_POLICY}"
|
||||
attach: false
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
- elasticsearch
|
||||
environment:
|
||||
- transport.host=0.0.0.0
|
||||
- discovery.zen.minimum_master_nodes=1
|
||||
|
@ -101,15 +101,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -201,15 +201,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -111,15 +111,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -225,15 +225,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -101,15 +101,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -202,15 +202,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -111,15 +111,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -225,15 +225,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -101,15 +101,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -202,15 +202,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -111,15 +111,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -225,15 +225,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -89,15 +89,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -190,15 +190,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-mysql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -99,15 +99,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
@ -213,15 +213,26 @@ services:
|
||||
file: compose_databases.yaml
|
||||
service: db-data-pgsql
|
||||
|
||||
# elasticsearch:
|
||||
# extends:
|
||||
# file: compose_databases.yaml
|
||||
# service: elasticsearch
|
||||
elasticsearch:
|
||||
extends:
|
||||
file: compose_databases.yaml
|
||||
service: elasticsearch
|
||||
|
||||
# selenium:
|
||||
# extends:
|
||||
# file: compose_additional_components.yaml
|
||||
# service: selenium
|
||||
selenium:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium
|
||||
|
||||
selenium-chrome:
|
||||
platform: linux/amd64
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-chrome
|
||||
|
||||
selenium-firefox:
|
||||
extends:
|
||||
file: compose_additional_components.yaml
|
||||
service: selenium-firefox
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
Loading…
Reference in New Issue
Block a user